Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Find angle of auto-oriented layer

  • Find angle of auto-oriented layer

  • Rodney Atkins

    March 8, 2020 at 3:22 pm

    Can someone tell me how to find the angle of a layer that’s auto-oriented along a motion path? I need to find this value to apply it to an angle control.

  • Dan Ebberts

    March 8, 2020 at 8:26 pm

    Try this:

    L = thisComp.layer(“Layer 1”);
    v = L.toCompVec([1,0]);
    radiansToDegrees(Math.atan2(v[1],v[0]))

    Dan

Viewing 1 - 2 of 2 posts

Log in to reply.

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