Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Continuous ease and hold rotation at interval?

  • Continuous ease and hold rotation at interval?

    Posted by Clifford Sonnentag on September 13, 2013 at 12:39 am

    Hello,

    I search a bit and couldn’t find this answered quite how I want to do it. Can someone direct me to a place I can understand how to do this or explain the best way?

    I am trying to express a way to rotate a a layer X degrees then hold for Y amount of time, then continue Do it again additively.

    So the final outcome would be an infinite addition to the rotation, but holding by a time. Like this:
    0-15 degrees ease, hold .5 seconds, 15-30 degrees ease, hold .5 seconds, …. continues forever.

    Thank you in advance.

    Clifford Sonnentag replied 12 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 13, 2013 at 2:32 am

    Something like this should work:

    easeTime = .2;
    holdTime = .5;
    amt = 15;
    period = easeTime+holdTime;
    t = time – inPoint;
    seg = Math.floor(t/period);
    p = t%period;
    seg*amt + ease(p,0,easeTime,0,amt)

    Dan

  • Clifford Sonnentag

    September 13, 2013 at 2:41 am

    Thanks Dan!

    I noticed you are posting a lot of useful answers that I have used already. Have any recommendations for books or learning resources?

    Cliff

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