Notifications
Clear all

[Closed] Particle Flow Birth Script + Inherit Materials

Hey guys, using the Birth script to include all the pieces of pre-fragmented model, and I’m wondering if there’s an addendum to the script, or an easy way that’ll allow me to properly inherit the material/placement thereof onto the particles?


on ChannelsUsed pCont do
(
	 pCont.usePosition = true
	 pCont.useShape = true
)

on Init pCont do 
(
	global chunkArray = $Chunk_* as array
)

on Proceed pCont do 
(
	t1 = pCont.getTimeStart() as float
	t2 = pCont.getTimeEnd() as float
	if ((t1 <= 0) and (t2 >= 0)) then
	(
		pcont.addparticles chunkArray.count
		for i in 1 to chunkArray.count do
		(
			pcont.particleindex = i
			pcont.particleshape = chunkArray[i].mesh
			pcont.particleposition = chunkArray[i].position
		)
	)
)

Thanks!