-
How to add “.” or “,” in a number inside a text layer
Hi there! What I wanna do is for example to make 8000 become 8.000 inside a text layer. Or 58123645 become 58.123.645 (in Brazil, we use “.”, maybe in USA or other countries “,” is used, but anyway…).
I have this in my Source Text (similar to Universal Counter tutorial, from Dan https://www.motionscript.com/design-guide/counter.html):
vMin = 0; //minimum value
vMax = 58123645; //maximum value
dur = 11; //duration
d = 0; //number of decimalslinear (time, inPoint, dur, vMin, vMax).toFixed(d)
But the problem is that there are no “.” (or “,”) added in each 3 numbers. I tried tried tried and I could not find a way to add “.” automatically.
Could anyone help me?
Thaks a lot!