Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 5 Minute Countdown

  • Dan Ebberts

    November 9, 2011 at 3:12 am

    If your comp is long enough, it should count down the whole 24 minutes. Are you possibly looking at a preview? You’ll need to render a movie to see the whole thing: Composition > Make Movie…

    Sorry if you already knew that.

    Dan

  • Karl Pouillot

    November 9, 2011 at 7:47 pm

    The countdown only to last 30 sec. I don t know how make it run 24 minutes…
    After 23:30:04, it stop. That’s weird, isn’it?

  • Dan Ebberts

    November 9, 2011 at 7:51 pm

    Seems weird to me.

    Dan

  • Karl Pouillot

    November 9, 2011 at 7:54 pm

    In fact, the countdown restart from the beginning… It run from 24:00:00 to 23:30:04 and restart from 24:00:00 after 30 sec…
    I need a really countdown of 24minutes and not 30 sec +S

    Please, help!

  • Karl Pouillot

    November 9, 2011 at 8:00 pm

    Could i send you the file to take a quick look on it?

  • Dan Ebberts

    November 9, 2011 at 8:10 pm

    Sure. You can contact me through my web site:

    https://www.motionscript.com

    Dan

  • Jose L garcia

    May 24, 2012 at 6:42 pm

    is not posible to pause the time and resume it? will be great if is possible to add some kind of key into the timeline to pause and again resume it.

  • Akira Jun

    May 24, 2012 at 8:34 pm

    I can use this expression with any frame rate like 24-29-60 or the code just follow the comp frame rate by itself?

    Thanks.

    rate = -1;
    clockStart = 300;

    function padZero(n){
    if (n < 10) return "0" + n else return "" + n
    }

    clockTime = Math.max(clockStart + rate*(time - inPoint),0);

    t = Math.floor(clockTime);
    min = Math.floor((t%3600)/60);
    sec = Math.floor(t%60);
    min + ":" + padZero(sec)

  • Dan Ebberts

    May 24, 2012 at 9:01 pm

    You set the countdown rate in the first line. At -1 it counts at regular comp speed, at -2 it would be twice as fast, etc. Does that answer your question?

    Dan

  • Akira Jun

    May 24, 2012 at 10:53 pm

    I think i got it.
    If i keep -1 the expression will work as the same a comp frame rate is.

    I have another question wich is the same one above of Jose.

    Using this expression to a “fight” scene where the judge sometimes stop and the counter must stop to then when he start will continue the same time position.

    Is possible to add somes keys into the timeline to pause and resume?

    Ex:

    5:00 ~ 4:10 run
    4:10~3:40 stop
    3:40~2:20 run
    2:20~1:30 stop
    1:30~0:00 run

    Regards.
    Jun

    rate = -1; clockStart = 300; function padZero(n){ if (n < 10) return "0" + n else return "" + n } clockTime = Math.max(clockStart + rate*(time - inPoint),0); t = Math.floor(clockTime); min = Math.floor((t%3600)/60); sec = Math.floor(t%60); min + ":" + padZero(sec)

Page 4 of 7

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