Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Is there a way to get expressions to ignore the number of rotations?

  • Is there a way to get expressions to ignore the number of rotations?

    Posted by Josh Smith on June 30, 2017 at 10:33 am

    Hi guys, was wondering if you could get expressions to ignore the number of rotations. I just want the 0-360 part of an angle controller, and to ignore the number of rotations. So almost like if it goes over 360 degrees, it resets to 0. Thanks

    Josh Smith replied 8 years, 10 months ago 3 Members · 3 Replies
  • 3 Replies
  • Charlie Laud

    June 30, 2017 at 12:33 pm

    Hey Josh,

    It might be as simple as throwing a modulus operator (%) after your rotation value:

    transform.rotation % 360

    That should re-evaluate to zero every time you pass 360!

  • Dan Ebberts

    June 30, 2017 at 1:00 pm

    Something like this should work:

    effect(“Angle Control”)(“Angle”)%360

    Dan

  • Josh Smith

    June 30, 2017 at 1:09 pm

    As simple as that! Thanks Dan

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