Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions time remap, play segment of time then skip ahead another segment

  • time remap, play segment of time then skip ahead another segment

    Posted by Tyler Jordan on April 4, 2017 at 11:37 am

    Hi All,

    Having a little trouble with this one, hopefully someone can help. I have a comp with one really long video in it. What I would like to do is play 1 second, then skip ahead to the next minute and play the first second of it, then skip ahead to the next minute and play the first second, and continue to the end.

    Just in case its worth mentioning the fps is 30 also.

    Here’s what I’ve been noodling with so far, however it pauses for a second rather than playing.

    Thanks!

    n = 1798; // play every nth frame
    m = 30; // play for this long

    f = timeToFrames();
    p = Math.floor(f/m);
    framesToTime(p*n)

    Tyler Jordan replied 9 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 4, 2017 at 5:34 pm

    I think it would be something like this:

    Math.floor(time)*60 + time%1;

    Dan

  • Tyler Jordan

    April 5, 2017 at 7:04 am

    Thanks Dan, that did the trick! Sometimmes it’s the simplest lines that get the most confusing to come up with!

    Cheers

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