ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Slowly progressing loop

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Viktor Landström
Slowly progressing loop
on Sep 25, 2017 at 5:38:33 pm

Hi,
I have a videoclip that is one minute long. I have the first 10 frames of the clip looped using the loopOut expression. However, I want the loop to move one frame forward with every iteration so that it slowly progresses through the entire clip.

So, the first loop should start from frame 1, the second from frame 2, the third from frame 3 etc........
Is there any way I can do this with expressions?

Thanks,
viktor


Return to posts index

Dan Ebberts
Re: Slowly progressing loop
on Sep 25, 2017 at 6:39:08 pm

Something like this probably:

f = timeToFrames(time);
dur = 10;
seg = Math.floor(f/dur);
framesToTime(seg + f%dur)


Dan



Return to posts index

Viktor Landström
Re: Slowly progressing loop
on Sep 26, 2017 at 4:51:15 pm

Amazing!
Thank you Dan!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]