Britton
02-17-2010, 04:13 PM
Hey folks!
I'm writing a script to align an array of point helpers to particles over time using particlePosition. It goes a little something like this...
dummies = $Point* as array
part = $PF_Source
count = part.NumParticles()
animate on
(
for t in animationrange.start to animationrange.end do
(
slidertime = t
for i in 1 to count do
(
part.particleIndex = i
dummies[i].pos = part.particlePosition
)
)
)
anyway, it all works beautifully, until I start having flows with more than one event. For instance, if the flow goes through a collision or age test, the particleIndex seems to cycle through the particles while the test event is going on, meaning the animation of the dummies jumps around to different particles from frame to frame. After the test event is completed, things resume working properly. Weird, right? Anyone encountered this before?
thanks a bunch!
I'm writing a script to align an array of point helpers to particles over time using particlePosition. It goes a little something like this...
dummies = $Point* as array
part = $PF_Source
count = part.NumParticles()
animate on
(
for t in animationrange.start to animationrange.end do
(
slidertime = t
for i in 1 to count do
(
part.particleIndex = i
dummies[i].pos = part.particlePosition
)
)
)
anyway, it all works beautifully, until I start having flows with more than one event. For instance, if the flow goes through a collision or age test, the particleIndex seems to cycle through the particles while the test event is going on, meaning the animation of the dummies jumps around to different particles from frame to frame. After the test event is completed, things resume working properly. Weird, right? Anyone encountered this before?
thanks a bunch!
