Nodes/Avatar Graph/Object Vertex Group Set Active
ComfyUI Node

Object Vertex Group Set Active

Point the Whole Pipeline at the Right Vertex Group

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Object Vertex Group Set Active
  • BPY_OBJ
  • group
  • BPY_OBJ

Half the vertex-group nodes in this pack act on the active group, not a group you name on the node itself. Normalize, Select, Move, Remove, the assign ops - all of them inherit "which group" from the object's active state. Object Vertex Group Set Active is how you set that state in a graph. It's the aiming node, and without it you're firing blind.

Think of it as the context setter. In Blender you'd click a group in the panel; here you wire a node that does the clicking for you.

How it works

An auto-generated wrapper around Blender's bpy.ops.object.vertex_group_set_active. One real input, one object:

  • group - the name of the vertex group to make active. It's a plain text field in the UI (the schema type is a dynamic enum that only has values at runtime), so type the group's name exactly.
  • BPY_OBJ - the mesh whose active group you're changing.

Output is the same BPY_OBJ, so the pattern is: Set Active (name the group) → then the node that consumes it. Concretely, that's Set Active → Object Vertex Group SelectObject Vertex Group Remove From, or Set Active → Object Vertex Group Normalize to fix just that one group.

Type the name right. Blender matches by exact name, and a typo means the operator gets a group that doesn't exist and the downstream op quietly does nothing.

Installing it

It's part of the Avatar Graph pack:

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

Restart ComfyUI, or install "Avatar Graph" from ComfyUI Manager. Pack-wide install notes: bpy==3.6.0 demands Python 3.10 (the README suggests a dedicated conda env), and bpy is a several-hundred-MB headless Blender.

Common issues

The dominant failure is a name mismatch - the group you typed doesn't exist, or differs by a space or case from the real one. If your Set Active → Select chain produces nothing, verify the exact group name first.

Second, remember that activation is a side effect on the object, and it persists for the rest of the chain. If a later node "suddenly" acts on the wrong group, check whether an earlier Set Active is still steering it.

Categoryblender

Inputs (2)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ
groupoptB_ENUM

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ