ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Randomize Specific Set of Characters

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Declan Smith
Re: Randomize Specific Set of Characters
on Mar 11, 2018 at 10:05:47 pm

Try this variation. This will loop over the array and build a string containing the random chars.

chars=["º", "_", "-", "•", "˙", "|"]
mystr=""
for (i=0;i <chars.length; i++) {
mystr+=chars[Math.floor(random(chars.length))]
}
mystr


Declan Smith
http://www.madpanic.tv
FCPX / Adobe CS6/ FCS3 / Canon XLH1 / Canon 7D / Reason / Cubase

"it's either binary or it's not"


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]