Script Op: TM from one particle source to another
#3
(05-17-2019, 10:23 PM)tyFlow Wrote: If you have exactly the same number of particles on each object, just offset your simIndex by the number of particles to get the other half of the particles. So something like this: (untested)

Code:
int numPlaneVertices = 25;
int sInx = tf.GetSimIndex(i)
int sInx2 = sInx + numPlaneVertices;
tf.SetTM(sInx2, tf.GetTM(sInx));

Thx Tyson, this works, but begs the question: How are the indices first assigned? based on the user dragging the first birth operator on stage?
Say i dragged a birth operator, and event is created "Event001", then i duplicate that. Indices of Event002 start after event001. If i delete Event001, are the indices offset back? kept the same? Is there like an event index?
If i had other events in my scene before doing that index offset you mentioned, how are you sure that the offset is equal to the event particle count only (that would only work if the event in question were created last). I hope this isn't too confusing
Thx
  Reply


Messages In This Thread
RE: Script Op: TM from one particle source to another - by chromodome - 05-17-2019, 11:27 PM

Forum Jump: