Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function padZero(n){
- if (n < 10) return "0" + n else return "" + n
- }
- //Jacob Cram kinda did this. It made him very happy when he got it to work.
- //Add in the control slider in the 't=' section
- t = thisComp.layer("Control").effect("Seconds")("Slider");
- hour = Math.floor((t)/3600);
- min = Math.floor((t%3600)/60);
- sec = Math.floor(t%60);
- hour + ":" + padZero(min) + ":" + padZero(sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement