Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions cloning the movement of a parented 3D camera

  • cloning the movement of a parented 3D camera

    Posted by Barend Onneweer on June 20, 2012 at 10:03 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

    Barend Onneweer replied 13 years, 11 months ago 1 Member · 1 Reply
  • 1 Reply

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy