Activity › Forums › Adobe After Effects Expressions › increasing numbers in text
-
increasing numbers in text
Posted by Reanimator1 on October 28, 2005 at 5:52 pmI’m trying to have numbers increase infinitely starting at 1.6 million. I tried using the numbers effect but the max amount that it can go is 30.000 and there is an expression preset for frame numbers but I don’t know how to modify the expression to start at a higher number because obviosly I can’t go 1.6 million frames in the comp. Can anyone help?
Thanks,
Sean
Liran Tabib replied 10 years ago 5 Members · 9 Replies -
9 Replies
-
Dan Ebberts
October 28, 2005 at 6:48 pmWell, I don’t know about infinitely, but you can use a text layer with an expression to count up to 999999999999999.
Here’s an example that counts from 1600000 to 999999999999999 over 4 seconds:
startCount = 1600000;
endCount = 999999999999999;
countDur = 4;
Math.round(linear(time,0,countDur,startCount,endCount))Dan
-
Reanimator1
October 28, 2005 at 7:10 pmDan,
Thanks a lot, that’s just what I needed.Thanks again,
Sean
-
Jeremie Moore
August 19, 2011 at 1:37 pmHow do I modify this expression to include a decimal?
startCount = 1600000;
endCount = 999999999999999;
countDur = 4;
Math.round(linear(time,0,countDur,startCount,endCount))Thanks in advance Dan.
startCount = 1600000;
endCount = 999999999999999;
countDur = 4;
Math.round(linear(time,0,countDur,startCount,endCount)) -
Dan Ebberts
August 19, 2011 at 5:50 pmI’m not sure if this is what you mean, but this adds two decimal places to the number:
startCount = 1600000;
endCount = 999999999999999;
countDur = 4;
linear(time,0,countDur,startCount,endCount).toFixed(2)Dan
-
Jeremie Moore
August 23, 2011 at 12:14 pmDan, is there a way to trigger the increase with a marker? I want this expression to happen at a particular frame in the timeline.
Thanks
J -
Dan Ebberts
August 23, 2011 at 1:15 pmSomething like this should work:
if (marker.numKeys > 0 && (time > marker.key(1).time))
t = time - marker.key(1).time;
else
t = 0;
startCount = 1600000;
endCount = 999999999999999;
countDur = 4;
linear(t,0,countDur,startCount,endCount).toFixed(2)
Dan
-
Lenny Richier
August 31, 2013 at 5:23 pmIs it possible to increase the number with proper decimal places?
like 247,000, without a period -
Liran Tabib
April 22, 2016 at 6:25 amOf course you can, with Counter Preset you can control how the Dividers and Decimal point looks:
https://www.vdodna.com/products/counter-preset/
Reply to this Discussion! Login or Sign Up