ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Digital Counter

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Klaus Boehmer
Digital Counter
on Feb 29, 2020 at 5:29:24 am

Hi there,

and greetings from the other side of the Atlantic Ocean.

I have found this template below to generate a digital clock / stopwatch:

However, I don't want it to work like a "real" clock but like "regular" counter, meaning that the "minute" counter should not start at 0 again, once 60 min have passed, but rather continue with 61, 62 a.s.o. (The final count should be 97:10)

I'd really appreciate it if somebody could help me out.


function padZero(n){
if (n &lt; 10) return "0" + n else return "" + n

t = Math.floor(effect("Slider Control")("Slider"));
hr = Math.floor(t/3600);
min = Math.floor((t%3600)/60);
sec = Math.floor(t%60);
delete the comment tags and put in one line to add hours
padZero(hr)+":"+ */


Return to posts index

Dmitrii Vac
Re: Digital Counter
on Mar 1, 2020 at 1:03:40 am
Last Edited By Dmitrii Vac on Mar 1, 2020 at 1:07:15 am

min = Math.floor((t%5470)/60);

Return to posts index

Klaus Boehmer
Re: Digital Counter
on Mar 1, 2020 at 6:01:39 am

thank you very very much

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 All Rights Reserved