Advertisement
Guest User

Untitled

a guest
May 16th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. function padZero(n){
  2. if (n < 10) return "0" + n else return "" + n
  3. }
  4.  
  5. //Jacob Cram kinda did this. It made him very happy when he got it to work.
  6. //Add in the control slider in the 't=' section
  7. t = thisComp.layer("Control").effect("Seconds")("Slider");
  8. hour = Math.floor((t)/3600);
  9. min = Math.floor((t%3600)/60);
  10. sec = Math.floor(t%60);
  11. hour + ":" + padZero(min) + ":" + padZero(sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement