Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How can i do this?

  • How can i do this?

    Posted by Nathaniel Logan on February 6, 2019 at 3:54 am

    Hi,

    Im creating a character rig, where i need to parent the Main comp layerposition toPrecomp Null layerposition, also i need to controll the mainComp layer value, since im using script which can parent the layer position and adding current layer value, attaching below.

    But the problem is when i try to link the mainComp layer to the preComp layer, the Layer jumps to the position of preComp layer, so in my case the rigs scatters, can you help me on this.

    What i want to achieve is link the position of preComp Null layer to mainComp layer + transform mainComp layer value.

    Thanks,
    Much Appreciated.

    value+comp("preComp").layer("Null").position;

    Nathaniel Logan replied 7 years, 5 months ago 1 Member · 1 Reply
  • 1 Reply
  • Nathaniel Logan

    February 6, 2019 at 7:36 am

    Ah,

    finally, I found a script from Dan Ebberts, one of his old post, what exactly I’ve wanted.

    Thanks Dan.

    p = thisComp.layer("parent").transform.position;
    delta = valueAtTime(0) - p.valueAtTime(0);
    p + delta

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