Re:

Date : Tue, 20 May 2008 16:52:34 -0400
To : XSI(at)Softimage.COM
From : takita <takita(at)earthlink.net>
Subject : Re:
mathieu.bertrand(at)hotmail.com wrote:

2. How those Xsi decide which object in the instance group it uses first?
It's your (ParticleID * 23827) % InstanceCount

So if your ID count is like 4, then your event script would be something like --

   Inst_Count  = 4;
   my_ID = myParticles(i).ID;
   Inst_Ind  = (my_ID * 23827 ) % Inst_Count ;

Just don't bother trying to forcibly set the ID on the particle, I've had bad things happen. Messing with Age can be bad sometimes too, better to kill or move the particle below a certain height at which point another event kills it.

-T

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.