ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Josh Smith
Is there a way to get expressions to ignore the number of rotations?
on Jun 30, 2017 at 10:33:36 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


Return to posts index

Charlie Laud
Re: Is there a way to get expressions to ignore the number of rotations?
on Jun 30, 2017 at 12:33:30 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!


Return to posts index

Dan Ebberts
Re: Is there a way to get expressions to ignore the number of rotations?
on Jun 30, 2017 at 1:00:03 pm

Something like this should work:

effect("Angle Control")("Angle")%360


Dan



Return to posts index


Josh Smith
Re: Is there a way to get expressions to ignore the number of rotations?
on Jun 30, 2017 at 1:09:08 pm

As simple as that! Thanks Dan


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]