Skip to main content
7 of 11
added 48 characters in body
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28

Python and particle system

I have been using this code to add a new particle system and create a name for it... I need help to choose the particle type "HAIR" and set other parameters.. This script does not work because the [part.001] keeps changing and going up. It will only work once when creating the first name.

Import bpy obj = bpy.context.active_object obj.modifiers.new("part", type='PARTICLE_SYSTEM') bpy.data.particles["part"].type = 'HAIR' 
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28