Forum Replies Created

  • Steven Knight

    November 26, 2010 at 3:44 am in reply to: 5 Minute Countdown

    Hi Dan,

    Thank you for these script tips.

    One problem I’m come across is the countdown eventually falling out of synch; apparently due to the 23.976 frame rate — it works like a charm at 24 fps.

    Any help would be greatly appreciated.

    Thank you for your time.

    Cheers.

    S.J.

    rate = -1;
    clockStart = 3600;

    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%3601)/60);
    sec = Math.floor(t%60);
    padZero(min) + ":" + padZero(sec)

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