Creative Communities of the World Forums

The peer to peer support community for media production professionals.

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

  • Getting world position of child layer via scripting

  • Charlie Laud

    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

    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

Viewing 1 - 2 of 2 posts

Log in to reply.

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