|
I have a particle shape that is emitting a second particle shape as tails for the first. The tails are inheriting their color (incandescence) from the specific particle they’re the tail for through the following command.
The problem is, many seconds after the simulation begins, once the parent particle shape has particles start to die, the colors of the tails for brand new parent particles don’t match their parent’s color, and all tails have the same color (instead of the randomly selected colors the different parent particles have.)
Here is the expression:
float $parentParticle = tailParticleShape.parentId; $command = "getParticleAttr -at incandescencePP -a true parentParticleShape.pt["+$parentParticle+"]"; vector $parentColor = eval($command); tailParticleShape.incandescencePP = $parentColor;
What is going on behind the scenes that causes this behavior? Any suggestions of how I can hack around this?
|
|
|