After Effects Countdown

Here is a quick-expression in after effects to show numbers counting in a Minute:Second appearance.

Before, we created a solid and applied the number layer effect to it and used the timecode option. Then used masks to mask out the zeros we didnt need, such as the hours etc..
This simple expression would be applied to a text layer source text, composited, and reversed to form a countdown. Make sure to adjust the FPS of your comp.


var fps=29.97;
var currentTime = timeToFrames(time, fps);
var minutes = Math.floor(currentTime / (fps * 60));
var seconds = Math.floor(currentTime / fps) % 60;
var leadingZero = (seconds < 10) ? “0” : “”;
minutes + “:” + leadingZero + seconds;