Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions position breaks with parenting!

  • position breaks with parenting!

    Posted by Lukasz Pason on August 2, 2013 at 4:40 am

    Hi.
    I’ve got what I hope is a noob question… I have circles that have effects from a solid parented to their positions. When I parent those circles to a null so that I can do a global rotation with them the effects on the solids break and the position linking turns up all wrong. What can i do?! All I have for expression is :

    thisComp.layer("circle 3").transform.position

    Lukasz Pason replied 12 years, 9 months ago 3 Members · 5 Replies
  • 5 Replies
  • Filip Vandueren

    August 3, 2013 at 10:30 pm

    The simplest solution (if possible) is to also parent “circle 3” to the same null.

    Positions of a child are relative to it’s parent.
    The value that you’re retrieving from “circle 3” is relative to it’s parent (if it has one).

    While it is possible to recalculate the position-value through expression, but then why would you parent them ?
    If you only way multiple layers to have the same rotation as a null, without it affecting their position or scale, you should not parent, but use an expression for their rotation like:

    thisComp.layer(“Null 1”).transform.rotation;

    you could also use:

    thisComp.layer(“Null 1”).transform.rotation + value;

    This will add the layer’s own rotation so you can have some variation

  • Darby Edelen

    August 3, 2013 at 10:34 pm

    Try this:


    l = thisComp.layer("circle 3");
    l.toWorld(l.anchorPoint);

    Darby Edelen

  • Darby Edelen

    August 3, 2013 at 10:37 pm

    Good God! Is Filip back?!

    Welcome back Filip 🙂

    Darby Edelen

  • Filip Vandueren

    August 3, 2013 at 10:59 pm

    That made my day/night 😉

  • Lukasz Pason

    August 3, 2013 at 11:01 pm

    Thanks guys! I ended up doing the easy thing… Pre-Compose. Rotate. =)

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