ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Getting world position of child layer via scripting

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Charlie Laud
Getting world position of child layer via scripting
on May 5, 2020 at 9:10:28 pm

Hi everyone!

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.


Return to posts index

Dan Ebberts
Re: Getting world position of child layer via scripting
on May 5, 2020 at 11:09:02 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.

Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]