- May 5, 2020 at 9:10 pm
I’m writing a script to help me with character rigging. I’m bringing layers in from Illustrator, and in order to define where anchor points should go, I simply have them drawn with small dots on separate layers. The idea is to use these pre-defined anchor points to define where limbs from Duik should be positioned so I don’t have to do it by hand each time.
Is there an Extendscript scripting equivalent of the following? :
layer("layer xyz").toComp(layer("layer xyz").anchorPoint);
I can’t seem to find a similar method in the Extendscript library. My logic is, if I can get the world position of a child, that’ll make things easier when it comes to doing the math on where the parented limbs of the DuiK limb structures should go.
- May 5, 2020 at 11:09 pm
Not that I know of. I always just have the script create a Point Control, apply the toComp() expression to it, harvest the result, and delete the control. It’s cumbersome, but it works.
Log in to reply.