Nodes/Avatar Graph/Object Vertex Group Select
ComfyUI Node

Object Vertex Group Select

Turn a Vertex Group Into a Selection, Just Like Clicking in Blender

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Object Vertex Group Select
  • BPY_OBJ
  • BPY_OBJ

In Blender, the "Select" button on a vertex group highlights every vertex that belongs to it. Object Vertex Group Select is that button, exposed as a node. It takes the incoming mesh, enters edit mode, and selects all vertices in the active group - which is surprisingly important, because a whole stack of Avatar Graph's other nodes act on the current selection.

Think of it as the setup step. It doesn't change weights or geometry; it changes what the next node will touch.

How it works

An auto-generated wrapper around bpy.ops.object.vertex_group_select. No knobs at all - BPY_OBJ in, and the same object back out. The entire job is: read the active vertex group, select its vertices.

That means the two things you control are which group is active (via Object Vertex Group Set Active beforehand) and what happens to the selection after. The natural pattern in this pack:

  • Set Active points at the group you care about.
  • Select turns that group's verts into a selection.
  • Remove From scrubs other weights off exactly those verts, or New With Name assigns them to a fresh group.

One node of Select sitting in front of a Remove From is the difference between "all the verts I meant" and "whatever happened to be selected."

Installing it

It ships in Avatar Graph:

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 grab "Avatar Graph" from ComfyUI Manager. Pack-wide notes: bpy==3.6.0 requires Python 3.10 (dedicated conda env per the README), and bpy is a heavyweight headless-Blender dependency.

Common issues

The classic "nothing selected" failure: if the group is empty, or the active group isn't the one with the verts you expected, Select quietly produces an empty selection and the next node no-ops. Always check which group is active - this node inherits the active state, it doesn't pick a group itself.

And the standing rule: it only operates on the BPY_OBJ you wire in, from upstream mesh nodes like Create Mesh Layer. A bare image workflow isn't a thing here.

Categoryblender

Inputs (1)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ