Making a countdown timer using expressions in After Effects gives you more control. In this short tutorial video, I’ll show you how to create a timer using a slider control and an expression on a text layer.
Here’s a look at the expression text used in the video:
slider = effect(“Slider Control”)(“Slider”);
sec = Math.floor(slider%60);
min = Math.floor(slider/60);
function zero(x) {
if (x<10) return “0” + x
else return x;
}
zero(min) + “:” + zero(sec)
Thank you! this works great, but I really want to work out how to do a wide countdown timer, with day, hour, min and secs, what would the expression look like? How do I do that? i’ve spent days trying to figure this out. there are no tutorials to show you how to do it. Please can you help?