-
Countdown Timer in After Effects- Trying to remove the movement of digits
So I’ve read through many of the forum posts about countdown expression. I know how to create a countdown. Right now, I’m looking to trouble shoot an issue I see with every expression I’ve used. When the digits change (for example: 10 to 9) there is a shift in the characters from left to right. It’s more noticeable with different fonts. I’m looking to eliminate this shift. I don’t want the character moving. I’d like them to be fixed. How do I accomplish this with the expression I’ve posted? Or is there another expression that would work better?
rate = -1;
clockStart = 900;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)
