ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Linking 2 camera's in different comps at a specific time

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mark Doctor
Linking 2 camera's in different comps at a specific time
on Sep 14, 2018 at 4:39:40 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


Return to posts index

Dan Ebberts
Re: Linking 2 camera's in different comps at a specific time
on Sep 14, 2018 at 5:30:58 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



Return to posts index

Mark Doctor
Re: Linking 2 camera's in different comps at a specific time
on Sep 14, 2018 at 6:03:30 pm

It works! Thank you for your time Dan 🙋


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]