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 pmCan 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 pmTry 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.