daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest May 16th, 2018 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top