Nodes/Avatar Graph/Object Particle System Remove
ComfyUI Node

Object Particle System Remove

Delete the active particle system slot, no questions asked

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Object Particle System Remove
  • BPY_OBJ
  • BPY_OBJ

Object_ParticleSystemRemove deletes the active particle system on a Blender object - the wrapper for bpy.ops.object.particle_system_remove(). One BPY_OBJ in, same one out, nothing to configure. It's the cleanup counterpart to Object_ParticleSystemAdd.

What it's for

If a particle system slot got added (on purpose or by an upstream template) and you don't want it - say, a particle system is dragging on export or adding unwanted settings to a mesh layer - this node strips the active slot. That's the whole job.

Two honest caveats. First, it removes the active particle system, not a named one: if the object has several particle slots, this node doesn't give you a way to pick which one. It just kills whichever is active in the shared scene at that moment, which is a bit of a gamble in a graph you didn't author. Second, this is another node that exists because the pack generated the full Blender object-operator surface - for a standard avatar rig you'll rarely touch particles at all.

How it works

Standard Object_* plumbing. Set the BPY_OBJ active in the shared headless Blender scene, run the operator, return the same object. No parameters to get wrong, and if there's no active particle system the operator does nothing. Output is the same BPY_OBJ.

Installing it

Ships inside Avatar Graph:

  • ComfyUI Manager: search "Avatar Graph", install, restart.
  • Or:
cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui
cd avatar-graph-comfyui && python -m pip install -r requirements.txt

Remember the pack-wide constraint: bpy==3.6.0 runs only on Python 3.10. On 3.11+ it's "no module named bpy" and the whole pack fails to load. Windows: the README's bundled ComfyUI_3.10.7z + run_nvidia_gpu_3.10.bat. Elsewhere: conda with python=3.10.

Gotchas

  • It targets the active particle system, with no name input. In a shared scene with multiple objects selected, "active" can be ambiguous - wire a single clear BPY_OBJ and don't rely on selection order.
  • The scene resets each run; objects must come from upstream nodes in the same graph.
  • If the node seems to do nothing, the object likely has no active particle slot - which is the state you wanted anyway.
Categoryblender

Inputs (1)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ