How to get index Slot Particle or Delete Slot Particle by Name? After applying Particle Modifier, the Particle slot still exists. As shown above, I want to delete slot &quot;SF_Plane_P_Sphere.002&quot;, but slot &quot;SF_Plane_P_Sphere.001&quot; is actived.
And as far as I know to remove it, i need to know its index to be active &amp; remove
bpy.context.object.particle_systems.active_index = 2

bpy.ops.object.particle_system_remove()

but I don't know how to get the index by its name. Or is there a way to delete it by its name ?
You can find the particle system slot index using:
index = bpy.context.object.particle_systems.find(&quot;the name you want&quot;)