-
cloning the movement of a parented 3D camera
Hi,
I’m trying to link a camera in a separate comp to the main camera. The main camera is parented to a null, but I’d like to avoid doing the same for the clone camera. So for the position I’m using:
L = comp("compB").layer("Rigged Camera"); L.to_world([0,0,0]);But for orientation/rotation it’s a bit more complicated. I found Dan’s example of:
L = comp("compB").layer("Rigged Camera");
u = L.toWorldVec([1,0]);
radiansToDegrees(Math.atan2(u[1],u[0]))But I can’t seem to get it to work properly… I probably need to separate the 3 directions in the array but the syntax is beyond me… As is the math…
So thanks again for any pointers :-).