Thank you for the feedback.
I would be interested in example code of using the ScriptUI graphics.
Maybe you (or anyone else) can help my also with some other problems that I have to solve for some new features I currently implement:
In the script I have to translate all maskpoints and trackpoints from layer-coordinates to comp-coordinates and back, to allow the points to come from different layers. This seems to be a standard problem that must occur in many scripts, but I have not found a solution. Paul Tuersley proposed to use expressions (see
this thread), but this slows down the computation a lot and I have to compute many of the transformations for each generated keyframe. I implemented something that takes into account position, anchorpoint, scale and parenting of the layers but in principle I should also take care about rotation and I am not sure about pixel aspect ratio.
Does every layer has its own pixel aspect ratio?
Is there some technical difference between shapes of masks and shapes of shapelayers? I want to allow the modification of shapelayers in the same way as masks but somehow shapelayers behave different that masks on solids. I assume, something goes wrong while translating shapelayer points to comp-coordinates (maybe this is some pixel aspect ratio problem? Do shapelayers have by default another pixel aspect ratio than the comp or is there any other relevant difference to solids?).
Shapelayers as well as the entire coordinate system transformation stuff seem to be poorly documented in the scripting guide.
Mathias