I'm trying to run through the selected particle system and create a point helper for each particle in the system. The problem I'm running into is that it creates duplicates.
pf = $ -- select pflow source
range = #(0, 30)
fn fnAddKey Obj val curTime =
(
with animate on
(
objTrack = Obj.pos.x = 5
)
)
for t = range[1] to range[2] do
(
MatEditor.Close()
local pPos = undefined
local flasherObj
sliderTime = t
count = pf.NumParticles()
temp = for i = 1 to count do
(
pf.particleIndex = i
pPos = pf.particlePosition
flasherObj = point wirecolor:yellow pos:pPos
fnAddKey flasherObj 1 sliderTime
)
)
By JokerMartini · 2011-06-22
MKlejnowski · 2011-06-23