05-17-2019, 05:05 PM
(This post was last modified: 05-17-2019, 05:23 PM by chromodome.)
Two similar events A and B.
One object "myPlane".
Events have a birth surface operator emitting on all particles on frame 0.
each particle in the flow should have a unique simulation index.
But for each particle in eventA there should be a particle in eventB with the same particle ID, no?
in eventB, i placed a script operator. i want to loop through all particles of event A, get their position or TM and plug them in the corresponding particles of eventB where the particle ID is the same.
Something like this: (ignore the syntax)
---
get particles from eventA (list that returns indices of particles in eventA)
For i in 1 to eventParticles.count do the following
{
sInx = GetSimIndex(i);
eventA_TM = get TM of particle in eventA[i];
setTM of sInx to eventA_TM
}
One object "myPlane".
Events have a birth surface operator emitting on all particles on frame 0.
each particle in the flow should have a unique simulation index.
But for each particle in eventA there should be a particle in eventB with the same particle ID, no?
in eventB, i placed a script operator. i want to loop through all particles of event A, get their position or TM and plug them in the corresponding particles of eventB where the particle ID is the same.
Something like this: (ignore the syntax)
---
get particles from eventA (list that returns indices of particles in eventA)
For i in 1 to eventParticles.count do the following
{
sInx = GetSimIndex(i);
eventA_TM = get TM of particle in eventA[i];
setTM of sInx to eventA_TM
}