... change the seed for random generators?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
mrc
Posts: 116
Joined: Wed Feb 14, 2018 10:36 am
Location: Berlin, Germany
Contact:

... change the seed for random generators?

Post by mrc »

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
You don't agree with the post above? Click here.
www.tricklabor.com/en
User avatar
hayasidist
Posts: 3492
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: ... change the seed for random generators?

Post by hayasidist »

mrc
Posts: 116
Joined: Wed Feb 14, 2018 10:36 am
Location: Berlin, Germany
Contact:

Re: ... change the seed for random generators?

Post by mrc »

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
You don't agree with the post above? Click here.
www.tricklabor.com/en
User avatar
hayasidist
Posts: 3492
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: ... change the seed for random generators?

Post by hayasidist »

if you're interested in writing scripts - this will give you a start.. http://mohoscripting.com/index.php?show ... _structure
User avatar
synthsin75
Posts: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: ... change the seed for random generators?

Post by synthsin75 »

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
Find "SetRandomSeed" in the particle layer tool, and change the values? Just a guess. I haven't tried it.
User avatar
hayasidist
Posts: 3492
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: ... change the seed for random generators?

Post by hayasidist »

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!
Post Reply