After Effects Tutorial - Creating a Countdown Timer Using Expressions

preview_player
Показать описание

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.

#adobe #aftereffects #motiongraphics #vfx #expressions
Рекомендации по теме
Комментарии
Автор

Great tutorial! If anyone else is looking for a quick copy paste, here is the expression:

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)

RileyMcMathWalker
Автор

Super helpful. Had me remembering all the good times I had in compsci before I changed my major to media.

lukewilsontv
Автор

No comment here yet. Thank you for the tutorial. I think i'll use it for my next youtube video, but I need a timer that is going to go up to a million. Hopefully I can figure that out hahaha

benpebbles
Автор

Hi Andy, Its showing error when I copy pasted the expression

kisshylove
Автор

Awesome !!!! Thank You very much!!! It helped a lot!!!
God bless You

Max-doyj
Автор

So I wanted to add hours to the timer. I ended up creating the hour field with no problems. But to get the minutes to start over at 60 I ended up trying this. Is that...supposed to work? Because it seems to work fine, but I honestly wasn't expecting it to. I was just experimenting.

min = Math.floor(slider/60%60);
hr = Math.floor(slider/3600);

DigitalJediMaster
Автор

That was incredibly easy! Thank you so much for the info.

StirlingSoap
Автор

I’m making one but working as a clock, so only hours and minutes. And I want to know what I can do to make it so when the hours go over 12 it goes back to 1. So basically a 12 hour clock.

robmaupome
Автор

Very well explained! Some videos give you the info but it's almost unbearable listening to the person presenting.

billdowling
Автор

Hey just wondering, how would I go about adding an extra 0 digit in front of the min expression?

bishcasual