Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Slow Motion Stopwatch

  • Slow Motion Stopwatch

    Posted by Jordan Ingram on September 2, 2010 at 3:38 pm

    Hello Creative beef enthusiasts!

    So I’m having a bit of an issue with an expression I’m using…

    Basically what it does is take your text layer and makes it into a countdown timer counting down from 20 minutes to zero. It’s structured as “Minutes, Seconds, Milliseconds” or “00:00.00”.

    So it’s working just fine. The issue that I’m having is that I’m dealing with 60p footage pulled down
    to 23.98. So it’s a slow motion shot which means that the expression above creates a timer that’s in
    real-time and is too fast. I still want it to count down from 20 minutes to zero, just at half speed.

    What do I need to do to this expression so that the text layer will count down accurately?

    t = 1200; // start time in seconds

    d = new Date((t - time)*1000);
    min = d.getMinutes();
    sec = d.getSeconds();
    ms = d.getMilliseconds();
    m1 = Math.floor(min/10);
    m2 = min%10;
    s1 = Math.floor(sec/10);
    s2 = sec%10;
    ms1 = Math.floor(ms/100);
    ms2 = Math.floor(ms%100/10);
    ms3 = ms%10;
    "" + m1 + m2 + ":" + s1 + s2 + "." + ms1 + ms2 +ms3

    Jordan Ingram replied 15 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 2, 2010 at 4:39 pm

    Try changing the second line to this:

    d = new Date((t – time*23.98/60)*1000);

    Dan

  • Jordan Ingram

    September 2, 2010 at 5:15 pm

    Thanks so much Dan!

    Works perfectly!

    – Jordan

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