-
Slow Motion Stopwatch
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 secondsd = 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