Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random letters change throughout the time

  • Random letters change throughout the time

    Posted by Anton Shushar on April 16, 2019 at 3:55 am

    I want text’s letters change randomly throughout the time, but those letters must be only a, b and h.
    So if I type any 6 characters and apply the expression I should have something like so:
    ahabba
    hbbabh
    bhahhb
    ahbbha

    Also it would be great to be able to change the speed(times/frames) how often letters are randomised.

    Dan Ebberts replied 7 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    April 16, 2019 at 5:58 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy