im trying to get some mesh into Pflow with this birth script i've found:
----
on ChannelsUsed pCont do
(
pCont.useAge = true
pCont.useTM = true
pCont.useShape = true
)
on Init pCont do
(
global ChunksArray = $Box* as array
)
on Proceed pCont do
(
t = pCont.getTimeStart() as float
if t < 0 do
(
NumChunks = ChunksArray.count
for i = 1 to NumChunks do
(
pCont.AddParticle()
pCont.particleIndex = pCont.NumParticles()
pCont.particleAge = 0
pCont.particleTM = ChunksArray[i].transform
pCont.particleShape = ChunksArray[i].mesh
)
)
)
on Release pCont do
(
)
----
but when the script spawns the particles, they all seem to have a random offset, allthou there seems to be no rotation.
im trying this in max 2012.
i tried allready to reset xform and center the pivots to the objects, but it just wont spawn right...
help would be really apreciated
thanks a lot for your coments
----
on ChannelsUsed pCont do
(
pCont.useAge = true
pCont.useTM = true
pCont.useShape = true
)
on Init pCont do
(
global ChunksArray = $Box* as array
)
on Proceed pCont do
(
t = pCont.getTimeStart() as float
if t < 0 do
(
NumChunks = ChunksArray.count
for i = 1 to NumChunks do
(
pCont.AddParticle()
pCont.particleIndex = pCont.NumParticles()
pCont.particleAge = 0
pCont.particleTM = ChunksArray[i].transform
pCont.particleShape = ChunksArray[i].mesh
)
)
)
on Release pCont do
(
)
----
but when the script spawns the particles, they all seem to have a random offset, allthou there seems to be no rotation.
im trying this in max 2012.
i tried allready to reset xform and center the pivots to the objects, but it just wont spawn right...
help would be really apreciated
thanks a lot for your coments
Comment