Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Dynamics / Particle ID?
  RSS 2.0 ATOM  

Particle ID?
Rate this thread
 
41195
 
Permlink of this thread  
avatar
  • adam8it
  • Posted: 26 March 2010 10:56 AM
  • Total Posts: 12
  • Joined: 11 April 2009 04:24 AM

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



Replies: 0
avatar
  • johnnyz
  • Posted: 14 July 2010 05:07 AM

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.



Replies: 0