Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Advanced Time Expresion

  • Advanced Time Expresion

    Posted by Augusto Keltika junior on May 23, 2017 at 3:02 am

    Hi there,

    I’m creating a countdown at 25fps and I’d like it to spin 360° with ease on Y axis every 19 frames, how would I go with that?
    I tried clamp, math.sin and other time expressions on the forum but nothing is quite doing what I am after.
    I appreciate your help, thanks.

    Xavier Gomez replied 9 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Xavier Gomez

    May 23, 2017 at 9:20 am

    This should work:

    t0 = inPoint;
    period = 19; // frames
    spinDur = 4; // frames
    phase = 2; // frames

    t = timeToFrames(time-t0)-phase;
    n = Math.floor(t/period);
    t%=period;
    if (t<0) t+= period;

    n*360 + ease(t, 0, spinDur, 0, 360);

    Xavier

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