Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Add additional random seed to textIndex

  • Add additional random seed to textIndex

    Posted by Kevin Dazet on April 17, 2013 at 10:09 pm

    Hi, does anybody know if there’s away to re-seed the randomness when you use an expression like this:

    seedRandom (textIndex, true)

    This bases the random seed on the text index, and I’m using it to assign random y positions to each character in a line of text. In some cases I’m not happy with the results, though. For example, I may have too many characters clustered together, and I’d like to have After Effects generate a new random order.

    Any suggestions?

    Kevin Dazet replied 13 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 17, 2013 at 10:19 pm

    You could set a seed offset (and maybe tie it to a slider):

    seedOffset = 99971;
    seedRandom (seedOffset+textIndex, true);

    Dan

  • Kevin Dazet

    April 17, 2013 at 11:37 pm

    That’s exactly what I needed. Thanks Dan!

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