ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Random letters change throughout the time

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


Dan Ebberts
Re: Random letters change throughout the time
on Apr 16, 2019 at 5:58:00 am

Something like this maybe:


chars = "abh";
segDur = .5; // change every .5 seconds
seed = Math.floor((time - inPoint)/segDur);
seedRandom(seed,true);
str = "";
for (i = 0; i < value.length; i++){
idx = Math.floor(random(chars.length));
str += chars[idx];
}
str



Dan



Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]