bartlebooth
03-17-2011, 05:52 PM
Hello.
I have 4 emitters linked together into one nParticle system. Each emitter emits a different sized and coloured nParticle. nParticles are goaled to four different curves (attached to the CV's of the curve). Now what I need is for each emitter to emit a specific number of nParticles for each curve (curve 1 - 20, curve 2 - 43, etc...). I can get nParticles to every CV point if I set the Max Count value to a high number but it is more than I need and I get an unwanted pulsing effect as nParticles emit on top of each other. Below is what I have so far in terms of expressions. Thank you.
//creation
if (nParticleShape1.emitterId == 0)
{
nParticleShape1.radiusPP = 1.7;
nParticleShape1.rgbPP = <<0,0,0>>;
nParticleShape1.goalWeight0PP = 1;
nParticleShape1.goalWeight1PP = 0;
nParticleShape1.goalWeight2PP = 0;
nParticleShape1.goalWeight3PP = 0;
}
if (nParticleShape1.emitterId == 1)
{
nParticleShape1.radiusPP = 1.2;
nParticleShape1.rgbPP = <<1,1,1>>;
nParticleShape1.goalWeight0PP = 0;
nParticleShape1.goalWeight1PP = 1;
nParticleShape1.goalWeight2PP = 0;
nParticleShape1.goalWeight3PP = 0;
}
if (nParticleShape1.emitterId == 2)
{
nParticleShape1.radiusPP = 1.52;
nParticleShape1.rgbPP = <<1,0,0>>;
nParticleShape1.goalWeight0PP = 0;
nParticleShape1.goalWeight1PP = 0;
nParticleShape1.goalWeight2PP = 1;
nParticleShape1.goalWeight3PP = 0;
}
if (nParticleShape1.emitterId == 3)
{
nParticleShape1.radiusPP = 1.55;
nParticleShape1.rgbPP = <<0,0,1>>;
nParticleShape1.goalWeight0PP = 0;
nParticleShape1.goalWeight1PP = 0;
nParticleShape1.goalWeight2PP = 0;
nParticleShape1.goalWeight3PP = 1;
}
Regards,
Bartlebooth.
I have 4 emitters linked together into one nParticle system. Each emitter emits a different sized and coloured nParticle. nParticles are goaled to four different curves (attached to the CV's of the curve). Now what I need is for each emitter to emit a specific number of nParticles for each curve (curve 1 - 20, curve 2 - 43, etc...). I can get nParticles to every CV point if I set the Max Count value to a high number but it is more than I need and I get an unwanted pulsing effect as nParticles emit on top of each other. Below is what I have so far in terms of expressions. Thank you.
//creation
if (nParticleShape1.emitterId == 0)
{
nParticleShape1.radiusPP = 1.7;
nParticleShape1.rgbPP = <<0,0,0>>;
nParticleShape1.goalWeight0PP = 1;
nParticleShape1.goalWeight1PP = 0;
nParticleShape1.goalWeight2PP = 0;
nParticleShape1.goalWeight3PP = 0;
}
if (nParticleShape1.emitterId == 1)
{
nParticleShape1.radiusPP = 1.2;
nParticleShape1.rgbPP = <<1,1,1>>;
nParticleShape1.goalWeight0PP = 0;
nParticleShape1.goalWeight1PP = 1;
nParticleShape1.goalWeight2PP = 0;
nParticleShape1.goalWeight3PP = 0;
}
if (nParticleShape1.emitterId == 2)
{
nParticleShape1.radiusPP = 1.52;
nParticleShape1.rgbPP = <<1,0,0>>;
nParticleShape1.goalWeight0PP = 0;
nParticleShape1.goalWeight1PP = 0;
nParticleShape1.goalWeight2PP = 1;
nParticleShape1.goalWeight3PP = 0;
}
if (nParticleShape1.emitterId == 3)
{
nParticleShape1.radiusPP = 1.55;
nParticleShape1.rgbPP = <<0,0,1>>;
nParticleShape1.goalWeight0PP = 0;
nParticleShape1.goalWeight1PP = 0;
nParticleShape1.goalWeight2PP = 0;
nParticleShape1.goalWeight3PP = 1;
}
Regards,
Bartlebooth.
