-
Time Remap sequence based on angle to camera
I’m rendering a tree with a 360° turn, so each frame is .5 degrees of rotation, 720 frames total. I’ve got a null in 3D space that I need to calculate its angle to camera, and convert that into a time remap of the tree sequence so that the tree appears to rotate properly with the camera move.
I’ve got this expression figuring out the Null angle to Camera, but having trouble converting that into a time remap (and a time remap that once it hits frame 720, loops back to frame 0).
C = thisComp.layer(“Camera 1”);
v1 = normalize(position – C.position)
v2 = C.toWorldVec([0,0,1]);
radiansToDegrees(Math.acos(dot(v1,v2)))Any help is greatly appreciated!!