Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions remap footage time

  • remap footage time

    Posted by Joe Dahl on September 18, 2018 at 3:47 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

    Joe Dahl replied 7 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 18, 2018 at 4:31 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

  • Joe Dahl

    September 19, 2018 at 1:22 pm

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

    Cheers

    Joe

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