Numbers counter with commas that goes into millions

Scripting for After Effects

Numbers counter with commas that goes into millions

Postby Director on 05/8/2015, 10:31 pm

It stops at 1 million and the comma goes whacky and stops 1000,000 like that.

How can I do this?
twitter.com/videography
Director
 
Posts: 376
Joined: 08/1/2008, 6:25 pm

Re: Numbers counter with commas that goes into millions

Postby Penguino138 on 05/10/2015, 2:56 pm

Director wrote:It stops at 1 million and the comma goes whacky and stops 1000,000 like that.

How can I do this?

Could you give some more details on this? Such as how long you want to counter to last, etc?

-Nate
Penguino138
 
Posts: 230
Joined: 04/26/2011, 9:36 pm
Location: Idaho, US
Twitter: @natelovell99

Re: Numbers counter with commas that goes into millions

Postby star+circle on 05/11/2015, 5:58 am

Is that comma to separate millions and thousands, or for decimal point? The numbers counter effect just goes to 1000 (with the slider) or 30000 (with manual input) with 0-10 decimal places.

For a simple counter, you can make a text layer and put an expression like the following for the source text:

Math.round(time*157681697.125756362)/1000

That multiplier depends on your needs -- this gives a running number that goes into the millions and further with (up to) 3 decimal places.
star+circle
 
Posts: 781
Joined: 12/6/2014, 3:07 pm
Location: Finland



Return to After Effects Expressions