Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions parenting expression?

  • parenting expression?

    Posted by Eric Smith on June 10, 2015 at 11:37 pm

    Hello!

    Is there a parenting expression that works similar to the regular parenting in AE? or an expression that adds the parents data to it’s own data?

    If you parent one object to another, the child stays put but once the parent is moved the objects stay congruent.

    If you use an expression to parent let’s say the xy position data of a plugin and xy of another object, the child jumps to the parents position.

    Does this make sense? I’m having trouble explaining it.

    Any help or thoughts are appreciated.

    Eric

    Dan Ebberts replied 10 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Eric Smith

    June 10, 2015 at 11:46 pm

    I think I figured it out….

    add the word value and then pick whip the parent.

  • Dan Ebberts

    June 10, 2015 at 11:51 pm

    It’s not straightforward. One way that might work for you is to reference the distance between the layers at the beginning of the time line. You would position the layers where you want them to start out, apply this expression to the child:

    p = thisComp.layer(“parent”).transform.position;
    delta = valueAtTime(0) – p.valueAtTime(0);
    p + delta

    and then keyframe the parent’s movement.

    Note that you won’t see any “parenting” until you animate the parent. there are other possibilities, depending on the specifics of your scenario.

    Dan

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