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. I will need one particle system, so I can apply the code on other objects as well. It is a bit confusing. The MBall is used as a particle to cover the entire surface of an object.
import bpy obj = bpy.context.active_object obj.modifiers.new("part", type='PARTICLE_SYSTEM') bpy.data.particles["part"].type = 'HAIR' bpy.data.particles["part"].count = 15000 bpy.data.particles["part"].use_advanced_hair = True bpy.data.particles["part"].render_type = 'OBJECT' bpy.data.particles["part"].instance_object = bpy.data.objects["Mball"] bpy.data.particles["part"].particle_size = 0.15 bpy.data.particles["part"].emit_from = 'FACE' bpy.data.particles["part"].distribution = 'RAND' ' 