Quantcast
Channel: Adobe Community : Popular Discussions - After Effects Expressions
Viewing all articles
Browse latest Browse all 47983

4 digit random number

$
0
0

Hi guys,

 

i would like to have a text layer that changes it´s 4-digit number everytime it´s duplicated.

 

I found an expression that basically does that, but it also includes other values like "@" and "%".

 

 

s = "0" + Math.floor(random(10000));

while (s.length < 4) s = "0" + s;

 

 

The solution must be simple, I just really suck at expressions

 

Thanks for the help.

 

Cheers,

 

 

Björn


Viewing all articles
Browse latest Browse all 47983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>