Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to make clip play 2 frames forward and one frame back

  • Expression to make clip play 2 frames forward and one frame back

    Posted by Kev Craven on September 6, 2012 at 8:51 pm

    I have posted this elsewhere, but didn’t realise there was a specific expressions section to this forum. Hope this is okay.

    Anyway, I know the final effect would be a bit jarring, but I am wanting to control a clip so that it will play 2 frames, jump back one frame then play 2 more and so on…

    Can this be done? Any help would be appreciated!

    Dan Ebberts replied 13 years, 9 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    September 6, 2012 at 9:56 pm

    Wouldn’t that make your frame sequence 0,1,1,2,2,3,3,4…? If so, then except for the first frame it would just be play every frame twice in a row, is that correct?

    Dan

  • Kev Craven

    September 6, 2012 at 10:19 pm

    No, I think I have explained it wrong. The sequence would be 1,2,1,2,3,2,3,4,3,4,5,4,5,6,5 and so on.

    When watching in QuickTime if you go frame by frame you’d press the arrow keys like this -> -> <- -> -> <- -> -> <- etc…

  • Dan Ebberts

    September 6, 2012 at 10:43 pm

    I think this time remapping expression will do it:

    f = timeToFrames(time) + 1;
    framesToTime(Math.floor(f/3) + f%3 -1)

    Dan

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