Travelling loop of footage
I have 1min of footage, I want to create an expression that creates a loop that advances forward one frame with each iteration.
I tried unsuccessfully time remapping with LoopOutDuration(type = “offset”, duration = (4/24)).
What I’m looking for is if “n” is the duration of the loop and “a” is the first frame of the loop, say n = 4 then what I need is:
abcd bcde cdef …. till the end of the footage.
If I could get that to work I’d be very happy.
If I could also get it to ping pong then I’d be extremely happy, e.g.:
abcdcba bcdedcb cdefedc
Any answers gratefully received.
Chris
-----
I should have kept looking:
https://forums.creativecow.net/thread/227/23446#23446
f = timeToFrames(time);
seg = Math.floor(f/5);
phase = f%5;
framesToTime(seg + ((phase == 4) ? 2 : phase))
Currently fiddling with this.
Does the travelling loop but not the pingpong.
Praise be to Dan.
