I am trying to make a particle system through the blender script, but I am unable to do so. I do not know much about scripting in blender. This is what I have and could you tell me how I could create a system?
obj = context.active_object
if len(obj.particle_systems) == 0:
obj.modifiers.new("part", type='PARTICLE_SYSTEM')
bpy.ops.object.modifier_apply(modifier = "part")