After Effects SDK - is there a "toComp" method for plug-ins?
The AE plug-in i'm developing uses a 2D API to draw a simple vector shape based on an attached mask. The plugin can adjust the shape's position using slider input which simply moves the path points up and down.
It works fine on a 3d layer, however when "continuosly rasterize" is enabled, the offsets are applied in comp space not layer.
Is it possible to convert the points from layer space to comp and back?
In expressions I can simply use theLayer.toComp([100,100]) to get the equivalent comp coordinates of point [100,100] on theLayer.
Can we do this in the SDK? I found AEGP_GetEffectCameraMatrix which looks like the right start, but not sure how to use it.
Also is it easy to calculate the distance between a point in layer space and the camera?
Always appreciate any help or advice, thanks!