ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

remap footage time

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Joe Dahl
remap footage time
on Sep 18, 2018 at 3:47:23 pm

Hey,

I'm looking for an expression or a way to play a clip forward X frames then reverse Y frames
I.E. Play forward 12 frames then reverse 11 frames and repeat over so the clip advances 1 frame at a time while ping ponging back and forth.

Any clues?

Cheers, Joe


Return to posts index

Dan Ebberts
Re: remap footage time
on Sep 18, 2018 at 4:31:24 pm

Try this:


n = 12;
f = timeToFrames(time);
fStart = Math.floor(f/(n*2-3));
offset = f%(n*2-3);
if (offset > (n-1)){
offset = (n*2-2) - offset;
}
framesToTime(fStart + offset)



Dan



Return to posts index

Joe Dahl
Re: remap footage time
on Sep 19, 2018 at 1:22:24 pm

Perfect!
Thank you so much! The mathematics are so impressive!

Cheers

Joe


Return to posts index

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