Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Parent object to a parented Null inside another comp?

  • Parent object to a parented Null inside another comp?

    Posted by Tyler Joynt on October 3, 2012 at 3:37 pm

    Building a reallly simple rig, but for certain reasons I need to parent an object (that the person will “hold”, in this case a clipboard) to a null inside another comp, where the hand lies.

    I tried attached expression on position to parent it to the position of the null, with offset, but then remembered AE doesn’t give you positional data for parented objects as they move.

    Any ideas?

    X = comp("Producer2Rig").layer("RightHand").transform.position[0]+220;
    Y = comp("Producer2Rig").layer("RightHand").transform.position[1]+275;
    [X, Y]

    Dan Ebberts replied 13 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    October 3, 2012 at 5:46 pm

    It probably depends on the relationship between the comp with the parented null and the other comp, but you’re going to need to use layer space transforms. See if this gets you any closer:

    L = comp(“Producer2Rig”).layer(“RightHand”);
    L.toComp(L.anchorPoint)

    Dan

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