View Full Version : help: Editing Particle Count
jonathan161 02-24-2003, 02:06 PM Hey
I was wondering if anyone could tell me how to change the particle count in a particleShape using a mel command after it has been created??
Thanks in advance
jonny
|
|
svenip
02-24-2003, 02:23 PM
what do you mean exactly ?? after the emitter has stopped you can't change the amount except particles die, but only the emitter can create new ones. or you want to clamp the amount to a defined number of particles ??
wrend
02-24-2003, 04:16 PM
there is "emit", for adding additionals, umm:
{
$nP = 1000; // # of particles to add
string $addPartix = "emit -o particleShape1 "; // particle name
for ($i=0; $i< $nP; $i++)
{
$pos = unit(sphrand(1)) * 7; // method of distrib
$addPartix = ($addPartix + "-pos " + $pos + " ");
}
eval $addPartix;
}
alexx
02-24-2003, 05:31 PM
more or less.. :)
that is quite vital information.
cheers
alexx
jonathan161
02-26-2003, 07:58 PM
cheers wrend, thats exactly what i was looking for :)
jonny
CGTalk Moderation
01-14-2006, 12:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.