Posted By

reform on 07/04/12


Tagged

birth vertices pflow birthscript


Versions (?)

Birth script to create particles on vertices


 / Published in: Maxscript
 

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

  1. on ChannelsUsed pCont do
  2. (
  3. pCont.usePosition = true
  4. )
  5.  
  6. on Init pCont do
  7. (
  8. global obj=$'Object03' --object with selected verts
  9. )
  10.  
  11. on Proceed pCont do
  12. (
  13. t1 = pCont.getTimeStart() as float
  14.  
  15. if (t1<0 ) then (
  16.  
  17. for i in obj.Verts do
  18. (
  19. pCont.AddParticle()
  20. pCont.particleIndex = pCont.NumParticles() -- last particle that was added
  21. pCont.particlePosition = i.pos
  22. )
  23. )
  24. )
  25.  
  26. on Release pCont do
  27. (
  28. )

Report this snippet  

You need to login to post a comment.