Activity › Forums › Adobe After Effects Expressions › Countdown Timer in AE
-
Countdown Timer in AE
Posted by Joe Mcarthur on May 22, 2006 at 5:49 pmi need a timer that counts down from 24hrs with (hours:minutes:seconds). Can someone give me the code for this ? Thanks so much
Sam Moulton replied 19 years, 12 months ago 4 Members · 5 Replies -
5 Replies
-
Julian Sixx
May 22, 2006 at 6:12 pmHi
use this expression for the source texthr = 00;
min = 00;
sec = 0;d = new Date((((hr*60)+min)*60 + sec + time)*1000);
s = d.toGMTString();
s.substr( -12, 8 ) -
Tony Bartolucci
May 22, 2006 at 6:39 pmI believe there is actually a Time effect that will count down…
-
Joe Mcarthur
May 22, 2006 at 7:54 pmi need it to count down from 24:00:00 . . . . this one starts at 00:00:00
-
Sam Moulton
May 22, 2006 at 8:03 pmjust did this
add a slider to a blank source text layer and then add this expression:
timeToTimecode(t = effect(“Slider Control”)(“Slider”)+ thisComp.displayStartTime, timecodeBase = 60, isDuration = false)
Animate the slider 1400.00 will give you 00:24:00:00 then just add a mask to remove the first two digits. because you change the timecode base to 60 you end up with a timer that will count in whole seconds. .1 on the slider = 6 seconds.
-
Sam Moulton
May 22, 2006 at 8:18 pmyou can also use this expression with a slider to make a hrs:min:sec:1/100 timer bu masking out the top dot in the last column
timeToTimecode(t = effect(“Slider Control”)(“Slider”), timecodeBase = 100)
just took the basic expression from the global properties and changed the timecode base and added a slider to change the number.
Reply to this Discussion! Login or Sign Up