Search found 1 match

by pickle
April 27th, 2009, 4:35 am
Forum: Expressions Library
Topic: Create a timecode with expressions
Replies: 16
Views: 55321

Re: Create a timecode with expressions

Apply this expression h=5;m=59;s=3;f=7; f+=timeToFrames(); s+=Math.floor(f*thisComp.frameDuration); m+=Math.floor(s/60); h+=Math.floor(m/60); f=f%(1/thisComp.frameDuration); s=s%60; m=m%60; if(f<10) {f="0"+f} if(s<10) {s="0"+s} if(m<10) {m="0"+m} if(h<10) {h="0"+h} h+":"+m+":"+s+":"+f Thanks Oscaru...