Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Auto-orient along path doesn’t work when there’s a Position expression

  • Dan Ebberts

    January 19, 2020 at 6:28 pm

    This rotation expression should work (turn off auto-orient):

    L=thisComp.layer(“Shape Layer 1”);
    p=L.content(“Rectangle 1”).content(“Path 1”).path;
    t = p.tangentOnPath(effect(“Slider Control”)(1),time);
    radiansToDegrees(Math.atan2(t[1],t[0]))

    except when your slider gets to 1.0, so you may want to limit it to .999 or so.

    Dan

  • Matthias Stoll

    January 19, 2020 at 8:48 pm

    Thank you!!!!!

Page 2 of 2

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