FORUMS: list search recent posts

Add additional random seed to textIndex

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kevin Dazet
Add additional random seed to textIndex
on Apr 17, 2013 at 10:09:46 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?


Return to posts index

Dan Ebberts
Re: Add additional random seed to textIndex
on Apr 17, 2013 at 10:19:00 pm

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

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

Dan



Return to posts index

Kevin Dazet
Re: Add additional random seed to textIndex
on Apr 17, 2013 at 11:37:46 pm

That's exactly what I needed. Thanks Dan!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]