Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Offset time of value referenced from other comp?

  • Offset time of value referenced from other comp?

    Posted by David Gruwier on January 6, 2015 at 12:40 pm

    Okay, so I have several precomps inside a main comp. In the main comp, I have a null that needs to control the camera motion inside all the nested precomps. So I made this:
    comp(“MasterComp”).layer(“CameraMovementNull”).transform.position;

    It doesn’t account for the time offset of the nested precomp though, meaning that a precomp starting 20 seconds into the main comp, will get the camera movement from the very beginning of the main comp. Is there a way to compensate for this? Either manually or automatically?

    David Gruwier replied 11 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 6, 2015 at 2:24 pm

    You can use the startTime of the precomp layer in the main comp, like this:

    C = comp(“MasterComp”);
    ctrl = C.layer(“CameraMovementNull”).transform.position;
    L = C.layer(thisComp.name);
    ctrl.valueAtTime(time+L.startTime)

    Dan

  • David Gruwier

    January 7, 2015 at 8:43 am

    That works, thanks!

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