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

    January 31, 2009 at 9:05 pm

    Try this:

    rate = -1;
    clockStart = 300;

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

    Math.ceil(clockTime)

    Dan

  • Tina Ferguson

    February 6, 2009 at 7:07 pm

    This is great. Thanks for doing this.

    I am curious if there is a way to change the font type of the numbers using this method.

  • Dan Ebberts

    February 6, 2009 at 8:23 pm

    No, expression don’t have access to font info.

    Dan

  • Sylvia Katsarska

    October 8, 2009 at 4:50 pm

    This is exactly what I need but unfortunatelly when I paste it in expressions place it said that there is a mistake on line 6 and the expression is disabled

  • Dan Ebberts

    October 8, 2009 at 5:40 pm

    Which property did you paste it into, and what was the exact error message?

    Dan

  • Michael Nguyen

    November 30, 2009 at 10:29 pm

    hi,

    I tried using this code but it seems its limited to an hour. i am trying to do a 2 hour countdown. is there something else i need to change besides the seconds?

    -mike

  • Dan Ebberts

    November 30, 2009 at 11:14 pm

    There’s a lot of code in this thread. To which are you refering?

    Dan

  • Michael Nguyen

    November 30, 2009 at 11:17 pm

    this one

    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

    November 30, 2009 at 11:31 pm

    Play around with this one:

    rate = -1;
    clockStart = 7200;

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

  • Peta Kyle

    January 20, 2010 at 5:30 pm

    I’m having the same issue with an error on line six. Did anyone ever find out what the problem was?

Page 2 of 7

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