|
Maya 2010
Problem:
I’m trying to instance 7 different animated models over 18 point particles in one particle node. for some reason half the particles take the same model using particle id in the instancer options for object index.
Suggested Solution:
Add a Float per particle attribute named = ID
In component editor change the ID numbers then us ID in the instancer for object index
Result:
Works until I render or close and reopen then the Particle lose the assignment and revert to 0… all using the same models
Any suggestions as to were I’m messing the scene up would be much appreciated
Adam
|
|
|
|
you could make a custom float attribute like custom_index and in creation write and expression like this:
if (particleShape1.particleId == 0)
particleShape1.custom_index = 0;
else if(particleShape1.particleId == 1)
particleShape1.custom_index = 1;
else if(particleShape1.particleId == 2)
particleShape1.custom_index = 2;
else if(particleShape1.particleId == 3)
particleShape1.custom_index = 3;
just be sure to select your new attribute in the object index tab under the instancer menu in your particle shape.
|
|
|