Is there a way, maybe through a layer script, to change the seed for random generators like particle distribution, noisy channel etc.?
In my particular case I have set up a particle layer to randomly distribute characters along a street but I would like to try different distributions.
Help!
Marc
... change the seed for random generators?
Moderators: Víctor Paredes, Belgarath, slowtiger
- hayasidist
- Posts: 3493
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: ... change the seed for random generators?
Thank you. I really have to look into and get started with scripting. Don't even know where to put those lines of code.
Marc
Marc
- hayasidist
- Posts: 3493
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: ... change the seed for random generators?
if you're interested in writing scripts - this will give you a start.. http://mohoscripting.com/index.php?show ... _structure
- synthsin75
- Posts: 9935
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: ... change the seed for random generators?
Find "SetRandomSeed" in the particle layer tool, and change the values? Just a guess. I haven't tried it.mrc wrote:Thank you. I really have to look into and get started with scripting. Don't even know where to put those lines of code.
Marc
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
- hayasidist
- Posts: 3493
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: ... change the seed for random generators?
http://www.mediafire.com/file/saufux9il ... rticle.zip
this will do much the same as the "randomise" button on the standard particle layer tool except that it pre-generates a set of random numbers so you can step forwards and backwards through them; and it stores information with the particle layer so that the same set of numbers can be accessed across multiple activations of the tool / moho.
more in the "readme" in the zip.
hope that helps!
this will do much the same as the "randomise" button on the standard particle layer tool except that it pre-generates a set of random numbers so you can step forwards and backwards through them; and it stores information with the particle layer so that the same set of numbers can be accessed across multiple activations of the tool / moho.
more in the "readme" in the zip.
hope that helps!