Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions toWorld help – also, is there a way to bake child data in AE?

  • toWorld help – also, is there a way to bake child data in AE?

    Posted by Colin Sebestyen on January 2, 2008 at 6:17 pm

    alrighty. I am moving a null around in AE and having particular generate based on the position. I need to make a 3d ribbon-y “band” with 10 instances of particular. I am having 10 nulls offset on a master null that I am animating around. Unfortunately, when you parent one layer to another, you no longer get position data in relation to the world, but instead in relation of the parent. Is there a way to bake children data in AE? I have tried changin my expression using toWorld to try and convert the positional data to world data but can’t get it working. It’s working in the z but not in the xy (particular pulls these apart this way) I can’t figure out the syntax, I know I am close.

    This is what I have on the xy for the particle emitter

    pos = thisComp.layer(“red”)
    wrld=pos.toWorld(pos.position);
    [wrld[0],wrld[1]]

    with “Red” being the null that is parented to the master null.

    and heres is what i have for z:

    pos = thisComp.layer(“red”)
    wrld=pos.toWorld(pos.anchorPoint);
    [wrld[2]]

    Z seems to be working. is this due to in being a single value and not an array?

    Thanks very much in advance!

    Colin

    Colin Sebestyen replied 18 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 2, 2008 at 8:44 pm

    Change your first expression to use anchorPoint like the one for Z does, and you should be good to go.

    Dan

  • Colin Sebestyen

    January 2, 2008 at 9:15 pm

    ah ha!

    Missed that. Thanks so much!

    Colin

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