ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Random text animation using only certain characters

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Marit van Wijk
Random text animation using only certain characters
on Sep 9, 2019 at 1:04:47 pm

Hi everyone,

I was hoping you could help me with the following.

I want to create a random text animation using only certain characters. So far I've only been able to create an animation with random numbers, but I'd like to ditch the numbers and use other digits. I used the script below to create this.

Does anyone have a script for generating randomized text using only certain specified characters?

Any help is much appreciated! Thanks in advance :)

seed = Math.floor(time/.15)
seedRandom(seed, timeless=true)
t = gaussRandom(index,900000000);
Math.round(t)


Return to posts index

Dan Ebberts
Re: Random text animation using only certain characters
on Sep 9, 2019 at 5:16:29 pm

Something like this maybe:

characters = "!@#$%^&*";
seed = Math.floor(time/.15)
seedRandom(seed, timeless=true)
i = Math.floor(random(characters.length));
characters[i]


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]