Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Help – LookAt not working with parented camera

  • Help – LookAt not working with parented camera

    Posted by Bonsak on August 29, 2005 at 2:59 pm

    Hi
    I want to rotate the camera around its Poin of iterest in a perfect circle.
    So i parent the camera to a Null located where the POI is,
    and then i rotate this null 360 deg. over a 45 second period.
    I have 9 layers that need to LookAt the camera,
    but it doesnt work when the camera is parented.
    It works fine when the camera is not parented.

    I also tried solving it with expressions but i cant figure out
    how to return the world position of the camera when its parented.

    Help please

    Regards
    Bonsak

    Bonsak replied 20 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 29, 2005 at 3:16 pm

    This should work:

    C = thisComp.layer(“Camera 1”);
    lookAt(C.toWorld([0,0,0]),position)

    But did you try just turning on Auto Orient > Orient Towards Camera?

    Dan

  • Bonsak

    August 29, 2005 at 4:42 pm

    Hi
    Thanks alot.
    Now i know how toWorld works 🙂
    I cant use Auto Orient because the 9 layers need to rotate/lookAt only around the y axis.

    Thanks again
    Regards
    Bonsak

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