Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Rotation with duration, holds for 1 sec. then repeats

  • George Judd

    October 24, 2018 at 8:36 am

    Works like a dream, thank you ☺

  • Roman Stupak

    December 12, 2019 at 12:54 pm

    Hi, Dan
    This expression works for me too as well – thanks a lot! But I want to start motion from 3 seconds on the timeline. Can you help me to solve this?

  • Dan Ebberts

    December 12, 2019 at 5:41 pm

    Not tested, but it should be like this:

    tStart = 3;
    f = timeToFrames(Math.max(time-tStart,0));
    value + Math.floor(f/3)

    Dan

  • Roman Stupak

    December 13, 2019 at 5:35 am

    Oh, I’ve probably replied to the wrong post – I meant this expression.
    Sorry 🙂

    segDur = 1;
    rampDur = 5*thisComp.frameDuration;
    degrees = 36;
    t = (time - inPoint)%segDur;
    seg = Math.floor(time/segDur);
    degrees*seg + linear(t,0,rampDur,0,degrees)

  • Dan Ebberts

    December 13, 2019 at 6:32 am

    Like this probably:


    tStart = 3;
    if (time >= tStart){
    segDur = 1;
    rampDur = 5*thisComp.frameDuration;
    degrees = 36;
    t = (time - tStart)%segDur;
    seg = Math.floor((time-tStart)/segDur);
    degrees*seg + linear(t,0,rampDur,0,degrees);
    }else
    0

    Dan

  • Roman Stupak

    December 13, 2019 at 9:32 am

    Worked like a charm!
    Thanks! 🙂

Page 2 of 2

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