FORUMS: list search recent posts

cloning the movement of a parented 3D camera

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Barend Onneweer
cloning the movement of a parented 3D camera
on Jun 20, 2012 at 10:03:39 pm

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 :-).

Raamw3rk - independent colourist and visual effects artist


Return to posts index

Barend Onneweer
Re: cloning the movement of a parented 3D camera
on Jun 20, 2012 at 10:23:29 pm

Hah... the third attempt at Googling brought the solution:

http://aenhancers.com/viewtopic.php?f=9&t=653&start=30

(also thanks to Dan!).

Raamw3rk - independent colourist and visual effects artist


Return to posts index

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