ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Clock counter that starts with '00' instead of just '0'

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Declan Smith
Re: Clock counter that starts with '00' instead of just '0'
on Jan 17, 2013 at 2:16:19 pm

Yep.
s=""+Math.floor(t);
while (s.length < 2) s='0'+s;

Math.floor(t) will produce the lowest whole integer,
Math.ceil(t) will produce the highest whole integer.

Hope this helps

Declan Smith
http://www.madpanic.tv
After Effects CS5.5/ FCS3 / Canon 7D / Canon XL2 / Reason / Cubase

"it's either binary or it's not"


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]