Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linking 2 camera’s in different comps at a specific time

  • Linking 2 camera’s in different comps at a specific time

    Posted by Mark Doctor on September 14, 2018 at 4:39 pm

    Hi guy’s

    I’ve got two comp’s

    The comp “Background” has been pre-composed in the “MainComp” and contains a Camera.
    The “MainComp” needs to have the same camera movements. For easy updating I use the expression:
    comp("BackGround").layer("Camera").transform.position;

    Because the “BackGround” layer also needs to be time-remapped, we need to use the camera value at a specific time
    valueAtTime(thisComp.layer("BackGround").timeRemap);

    However the code:
    comp("BackGround").layer("Camera").transform.position;
    valueAtTime(thisComp.layer("BackGround").timeRemap);

    …will not work because the value form the “Camera” never got stored in the value key-frame.
    So how do i glue these expressions together?

    thank you for your time, Mark

    Mark Doctor replied 7 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 14, 2018 at 5:30 pm

    I haven’t tested this, but it seems like it would be like this:

    comp(“BackGround”).layer(“Camera”).transform.position.valueAtTime(thisComp.layer(“BackGround”).timeRemap);

    Dan

  • Mark Doctor

    September 14, 2018 at 6:03 pm

    It works! Thank you for your time Dan ????

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