Return to Snippet

Revision: 58259
at July 4, 2012 22:20 by reform


Initial Code
on ChannelsUsed pCont do 
( 
    pCont.usePosition = true 
) 

on Init pCont do 
( 
   global obj=$'Object03' --object with selected verts 
) 

on Proceed pCont do 
( 
   t1 = pCont.getTimeStart() as float 

   if (t1<0 ) then ( 

      for i in obj.Verts do 
      ( 
         pCont.AddParticle() 
         pCont.particleIndex = pCont.NumParticles() -- last particle that was added 
         pCont.particlePosition =  i.pos 
      ) 
   ) 
) 

on Release pCont do 
( 
)

Initial URL

                                

Initial Description
Place this into a plow birthscript
Remember to replace "object03" with the distributor object

Initial Title
Birth script to create particles on vertices

Initial Tags

                                

Initial Language
Maxscript