Activity › Forums › Adobe After Effects Expressions › Create column of numbers
-
Create column of numbers
Posted by Riccardo Sinti on October 22, 2015 at 3:51 pmIs there a way in expressions to create a column of sequential numbers like this:
10
11
12
13
14
15
16Thanks!
Riccardo Sinti replied 10 years, 6 months ago 4 Members · 6 Replies -
6 Replies
-
Chris Scalzo
October 22, 2015 at 4:24 pmdid you want those exact numbers? How did you want to input the Numbers if not? For most cases I’d just use point text and press return to add more lines.
-
Riccardo Sinti
October 22, 2015 at 4:38 pmi want to automatically create a string of text in a column with parameters like start # and end #
so create column from 23 – 187 for example -
Dan Ebberts
October 22, 2015 at 7:20 pmTry this:
startNum = 10;
endNum = 16;
str = "";
for (i = startNum; i <= endNum; i++){
str += i + "\r";
}
str
Dan
-
Kevin Camp
October 22, 2015 at 7:30 pmtry this:
startVal = 23; endVal = 187; nums = ""; for(i=startVal; i<=endVal; i++) nums = nums + i + '\r'; nums
Kevin Camp
Art Director
KCPQ, KZJO & KRCW -
Riccardo Sinti
October 22, 2015 at 7:57 pmPerfect, saves lots of typing.
Thanks, as always you rock!
-Ric
Reply to this Discussion! Login or Sign Up