Activity › Forums › Adobe After Effects Expressions › Rotation with duration, holds for 1 sec. then repeats
-
Rotation with duration, holds for 1 sec. then repeats
Roman Stupak replied 6 years, 4 months ago 6 Members · 16 Replies
-
Roman Stupak
December 12, 2019 at 12:54 pmHi, 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 pmNot 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 amOh, 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 amLike 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
Reply to this Discussion! Login or Sign Up