-
Interpolate between multiple cameras from diferent comps.
Hello, I am working on a project with several scenes with his own camera. Each camera has its own animation directed via keys/expressions. The idea was to use a main camera that interpolates from one camera to another, using markers as triggers. I am using the expression bellow on the point of interest on the main camera. The position follows the poi with it’s own z value.
The thing is that in this way I only can interpolate between two cameras. Thus linking ‘main cameras’ could go but then the workspace becomes very cumbersome. I was thinking to use a text layer or markers to store references to the cameras, and then interpolate between all of them in one camera. It is any way to use linear(), ease(), etc.. several times in the same expression?
camera1 = comp("Secene_1").layer("Camera 1");
camera2 = comp("Secene_2").layer("Camera 2");offset1 = comp("Secene_1").layer("Camera 1").startTime;
offset2 = comp("Secene_2").layer("Camera 2").startTime;poi1 = camera1.transform.pointOfInterest.valueAtTime(time + offset1);
poi2 = camera2.transform.pointOfInterest.valueAtTime(time + offset2;t1 = marker.key("Camera 1").time;
t2 = marker.key("Camera 2").time;ease(time, t1, t2, poi1, poi2)