-
Random Characters with Multiple Lines
I’m trying to add a source text expression to a multi-line text layer where it’ll change every character randomly (limited to A-Z, 0-9) at a specific speed. For instance, if the text layer has two lines with 10 characters each, the expression would keep that exact format but change each character to a different random character, over and over again, at a specific speed.
This expression sort of does what I need, however it doesn’t seem to dynamically preserve the original text format like number of characters and number of lines.
c = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','0','1','2','3','4','5','6','7','8','9'];
s = "";
for(x=0; x < value.length; x++){
r = Math.floor(random(0, c.length));
s += c[r];
}
sIt also cycles through random characters every frame, which I’d like to control how often the characters change. (ie every 4 frames) How would I go about this expression?
Thanks!
-MJ