Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Reset rotation each revolution

  • Reset rotation each revolution

    Posted by Mikko Miettinen on September 15, 2017 at 12:43 pm

    Hi
    I´m trying to rotate a shape through expression so that on each revolution rotation value resets to 0. So basically I want a shape rotate only through 0-360 degrees and then reset to 0 degrees again and continue rotating. I don´t want to use keyframes and loop expression.

    Thanks

    Nithish Kumar replied 6 years ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    September 15, 2017 at 6:00 pm

    Something like this maybe:

    dur = 2; // rotate 360 degrees every 2 seconds
    ((time-inPoint)*360/dur)%360

    Dan

  • Mikko Miettinen

    September 15, 2017 at 6:28 pm

    Hi Dan,
    Thank you! You´re the boss! ☺ Could not get my head around this.

    Mikko

  • Nithish Kumar

    May 3, 2020 at 12:45 pm

    Could you break this down in words plz ?

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