ytsejam
Hello. Does anybody know how to solve this problem that make me crazy?
I have 3 particle systems that run in this way.
1: Where I ssign an expression to randomize the color: nParticleShape1.rgbPP=<<rand(1),rand(1),rand(1)>>;

2: emitted from the 1 where i would take the colors from each particles emitted before in step 1.
vector $color =particle -at rgbPP -id (nParticleShape2.parentId) -q nParticle1;
nParticleShape2.rgbPP=$color;
I’ve added a parentID
3: emitted from the 2 particles system:
vector $color =particle -at rgbPP -id (particleShape1.parentId) -q nParticle1;
particleShape1.rgbPP=$color;

All run well without this expression, but when i’m started to add this expression, maya returns an error:
maya rgb color Error: line 0: Could not find particle with id specified. Please check id value in the query command //// Error: An execution error occurred in the creation expression for particleShape1. //
Anyway if i set the lifespan mode to live forever I get no errors. but when i change to random or constant I get this error.
If anyone have an Idea. I’m running in a problem big because I’m not great with expression, so I cannot advance anymore.

I'm lost
Thanks
Reply 0 0
pshipkov

Ouch, missed this one somehow.

I will need to take a look what goes wrong with the scripts, but my advise will be to use the point cloud particle emitter node in SOuP, if you can.

First, it will be much faster (no expressions), second, you connect the position, velocity, color, etc attributes from the source particle system and the rest will be handled for you, including colors.

Reply 0 0
ytsejam
Hi @pshipkov.
I've missed too your answer. Sorry
I will like to use Maya without soup. I send to a copy of whats go wrong in animation.
Thanks
Reply 0 0
Reply