Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Getting world position of child layer via scripting

  • Getting world position of child layer via scripting

    Posted by Charlie Laud on May 5, 2020 at 9:10 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.

    Dan Ebberts replied 6 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    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.

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy