Nodes/Avatar Graph/Object Modifier Move Up
ComfyUI Node

Object Modifier Move Up

Reordering a Blender modifier stack from ComfyUI

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Object Modifier Move Up
  • BPY_OBJ
  • BPY_OBJ
modifier

This one's from Avatar Graph, avatech.ai's pack for building interactive avatars from character art entirely inside ComfyUI, and it does exactly one small but occasionally essential job: it moves a named modifier up one slot in a Blender object's modifier stack.

Why modifier order matters

Blender modifiers evaluate top to bottom, and order changes the result. Put a Subdivision Surface modifier above an Armature modifier and you're subdividing an unposed mesh before deformation happens, which looks different from posing first and subdividing after. Put a Mask modifier in the wrong spot relative to a Mirror and you get a different silhouette entirely. In a normal Blender session you fix this by dragging the modifier up or down in the object properties panel. In a graph-built pipeline where the whole rig is assembled procedurally, there's no panel to drag in - so this node exists to do that reorder programmatically, as a step in the graph.

Inputs and outputs

Two inputs, both optional: BPY_OBJ (the object whose modifier stack you're touching) and modifier, a plain string field defaulting to empty. That string needs to be the exact name of the modifier as it appears on the object - this isn't a dropdown, it's a free-text field, so a typo or mismatch means the operator has nothing to move and silently does nothing. Output is the same BPY_OBJ, modifier stack reordered, passed along for whatever comes next in your rig-building chain.

Worth naming explicitly since it's easy to miss: this node moves the named modifier up one position each time it runs. If you need to move something down, or move it more than one slot, that's either a different node in this pack or multiple runs of this one - the schema here only exposes the single "move up" operator.

Installing it

Search avatar-graph-comfyui in ComfyUI Manager, or install manually:

cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui
cd avatar-graph-comfyui && python -m pip install -r requirements.txt

The whole pack runs on bpy - Blender packaged as a pip module - and bpy is strict about its Python version: 3.10.x only. That's the thing that actually determines whether this installs cleanly, not the pack's own requirements file. The README's Windows path is a dedicated prebuilt Python 3.10 ComfyUI zip built specifically for this pack; on Mac/Linux, a fresh conda create --name comfyui python=3.10 before pip-installing is the recommended route rather than trying to shoehorn it into an existing 3.11+/3.12 environment. Restart afterward with --enable-cors-header if you want the live avatar preview panel to talk to editor.avatech.ai.

Troubleshooting

If the reorder doesn't seem to happen, the first thing to check is the modifier string - case and spelling both need to match the modifier's actual name on the object exactly, and there's no error surfaced if it doesn't match, it just doesn't move anything. Second most likely cause: the modifier's already at the top of the stack, in which case there's nowhere left to move it. Beyond node-specific issues, keep in mind this pack had its visible moment back in October 2023 and has stayed quiet since - the README's "still making changes" warning banner is original and unremoved, so there's no deep community troubleshooting thread to lean on; the pack's own Discord is the realistic fallback.

Categoryblender

Inputs (2)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ
modifieroptSTRING

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ