-
Get world-space xform from CornerPin that’s parented
Hi all, Could anyone help with this? I want to acquire the world-space coordinates of each of the 4 corners from a parented, smaller precomp, which is being distorted with CornerPin.
Example: everything happens in Comp1, which is 1280×720.
There’s a keyframe animation (say, layer called “Hand”), to which a SMALL comp (like a postcard) is parented. The postcard comp size is 200×150, and it’s called “PC Card”.
Normally, I could get the world-space x-y coordinates of “PC Card” pretty easily by doing something like;
C = thisComp.layer(“PC Card”)
C.toWorld(C.anchorPoint)
The coordinates returned are for plugging into another FX, like say a particle generator.However, what I ALSO need to do, is have a CornerPin effect applied to the layer “PC Card”, and then be able to get the final world-space coordinates of the (for instance) Upper Left Corner of the corner-pinned “PC Card”. (I figure if I can do this for one corner, the other 3 should follow easily)
Any advice is greatly appreciated!
Thanks
Teo