Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Source text rotation limited to 360 degrees

  • Source text rotation limited to 360 degrees

    Posted by John Burgess on October 1, 2022 at 2:58 pm

    I’m trying to get the rotation value of each text layer but by default this pulls in the overall rotation rather than based on 360 degrees.

    For example once hitting the top spot this should reset to 0 rather carrying on 360+

    To achieve this i’m using thisLayer.transform.rotation.value.toFixed(0); on each text layer though this requires each layer to have its own rotation, is it possible to get these values still with everything being parented to a single rotation null?

    Thanks.

    Filip Vandueren replied 2 years, 4 months ago 3 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    October 1, 2022 at 3:57 pm

    This should work:

    (rotation%360).toFixed(0);
  • John Burgess

    October 1, 2022 at 4:47 pm

    Thanks so much Dan, this worked perfect when each layer has its own rotation.

    Do you know if there is a simple way to make this work when the rotation is being controlled via a single null?

  • Dan Ebberts

    October 1, 2022 at 4:56 pm

    I can’t quite picture what you mean exactly.

  • Filip Vandueren

    October 3, 2022 at 9:02 am

    You would need to add parent.rotation:

    ((rotation+parent.rotation)%360).toFixed(2);

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