ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: counting up number with this expression but using COMMAS

COW Forums : Adobe After Effects Expressions

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


Dan Ebberts
Re: counting up number with this expression but using COMMAS
on May 14, 2015 at 5:21:40 pm

I hope this pastes in correctly (it has a few backslashes in it which seem to cause problems some times):


startCount = 0;
endCount = 500000;
countDur = 200;
s = "" + Math.round(linear(time,0,countDur,startCount,endCount));
s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");



Dan



Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]