Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Parenting without parenting

  • Parenting without parenting

    Posted by Hernan Retamoso on May 6, 2009 at 5:43 am

    I need to simulate a child layer with expressions (without parenting).

    Rotation and position.

    The parent layer has a different anchor point and position.

    Is there any way?

    Thanks in advance

    Hernán

    Filip Vandueren replied 17 years ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    May 6, 2009 at 11:00 am

    I can only get it to work if you keyframe position and rotation, it would reference back to the situation at time=0 because we need a fixed state that describes the relative position between child and parent.

    position:

    my_parent=thisComp.layer("Null 2");

    child_attach_point=my_parent.fromComp(position, t = 0);
    new_position=my_parent.toComp(child_attach_point);

    rotation:

    my_parent=thisComp.layer("Null 2");

    value+my_parent.rotation

    Another approach would be to define child_attach_point as a fixed value, or as a control_point on the parent, that way you can start tweaking immediately without keyframing at time=0.

    Am I making sense ?

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