Hi,
I’m trying to control 40 boxes using pflow. I’ve set up a birthscript to spawn a particle per box and set the particles shape to be the same as the box.
All of my boxes have different materials assigned to them. Is it possible to assign the same material to the particle as the referencebox? So that the 40 particles has the same material as the corresponding box, using script?
The only way I know how to do that is by making a multisub with the 40 different materials and match the particles ID so they match.
It would be great if I could do something like this
pCont.particleShape = boxesArray[i].mesh
pCont.particleMaterial = boxesArray[i].material
