I’ve used the following code:
rateOfSpeed=1;
clockStartTime = thisComp.layer("Timer Duration").effect("Slider Control")("Slider")*60;
clockTimeNumber = Math.floor(clockStartTime - rateOfSpeed*time);
function addZero(n) {
return (n < 10) ? "0" + n : n;
}
minutes = Math.floor(clockTimeNumber/60);
seconds = clockTimeNumber%60;
if (clockStartTime > 0 && time < clockStartTime) {
addZero(minutes) + ":" + addZero(seconds);
} else {
"00:00";
}
The problem however, is that my font doesn’t have the same with for all the characters.
Therefor the countdown goes off center when counting down.