Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions An expression to keep a nested layer oriented

  • An expression to keep a nested layer oriented

    Posted by Jon Campbell on December 26, 2008 at 7:46 pm

    I’m sure there is a very simple and elegant way to do this, but I am really a novice at expressions.

    I have a layer moving all over the screen, moving through various rotations in z space. I have one piece coming off of the layer which I’d like to always orient towards a null object below the edge of frame.

    How would you do this?

    Thanks

    Dan Ebberts replied 17 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    December 27, 2008 at 12:13 am

    This orientation expression should handle most conditions:

    L = thisComp.layer(“Null 1”);
    lookAt(fromWorld(L.toWorld(L.transform.anchorPoint)),transform.anchorPoint)

    Dan

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