klaz
01-13-2011, 10:18 AM
Hey all,
im kinda stuck here so I though some of you might know better as im not a guru.
I have a scene where an emitter is emitting some particles (big chunks). I have given them a random radiusPP from 1-3. In return those particles emit other particles (trail).
Now i basically want to write an expression on the emission rate of the 'trail' emitter that is controlled based on the radiusPP of the 'big chunks' particleShape. So the smaller the particle (big chunk), the less emmision rate (of the trail) on this particle.
Since the particles (big chunks) are not objects, and is not only one but several, the emitter has not given me a 'scale rate by object size' tickbox.
This is the expression I wrote but its not working:
small_trail_emitter.rate = 100 + (chunksShape.radiusPP * rand (100 , 150));
This is the error i get back
// Error: Attribute of a particle object can only be used with dynExpression command: radiusPP
Anyone knows how to go about writing this? Or another approach maybe?
Much appreciated
im kinda stuck here so I though some of you might know better as im not a guru.
I have a scene where an emitter is emitting some particles (big chunks). I have given them a random radiusPP from 1-3. In return those particles emit other particles (trail).
Now i basically want to write an expression on the emission rate of the 'trail' emitter that is controlled based on the radiusPP of the 'big chunks' particleShape. So the smaller the particle (big chunk), the less emmision rate (of the trail) on this particle.
Since the particles (big chunks) are not objects, and is not only one but several, the emitter has not given me a 'scale rate by object size' tickbox.
This is the expression I wrote but its not working:
small_trail_emitter.rate = 100 + (chunksShape.radiusPP * rand (100 , 150));
This is the error i get back
// Error: Attribute of a particle object can only be used with dynExpression command: radiusPP
Anyone knows how to go about writing this? Or another approach maybe?
Much appreciated
