particle to object
im sorry my english
i studed some tutorial
but i got not understand one ting
that is
(
local BakePF = $'PF source 001'
local TheCount = BakePF.numparticles()
local myarray = for i = 1 to TheCount collect
(
BakePF.particleindex = i
local newobj = Editable_Mesh()
newobj.mesh = BakePF.particleShape
newobj.transform = BakePF.particleTM
newobj.name = uniquename("myBake_")
newobj <<< it is my question
)
)
question located newobj.name below
why if writed it then script runs ok but not wirted it then script runs not okay??
Comments
fn bakeThisParticle
Something like that ?
...
Can you explain again what is the problem here?
bga
.
sorry my english
why namobj diffrence exist it or not exist it
if not exist then don't evalute............
That last line of 'newobj'
That last line of 'newobj' returns the object, which has been modified in earlier lines. Without this, your object won't be updated, and will remain an empty piece of geometry which is how it was created in 'local newobj = Editable_Mesh()'