Object Select Linked
Select everything that shares the same data — the 'same mesh, same material' node
- BPY_OBJ
- BPY_OBJ
Object Select Linked finds every object that's connected to the active object through shared Blender data - the same mesh data, the same material, the same library. It wraps bpy.ops.object.select_linked. In an avatar graph where you've duplicated parts and want to grab "all the copies that still share the original mesh," this is the node that finds them by what they are, not by name or position.
The input that matters
Beyond BPY_OBJ and extend, the type dropdown decides what "linked" means:
- OBDATA - objects sharing the same underlying mesh/geometry data. The big one: if you duplicated a mesh layer, all the linked copies select together.
- MATERIAL - everything using the same material. Great for "grab all the parts that share the skin texture" or any texture you assigned to multiple pieces.
- DUPGROUP - instances sharing a dupli-group.
- PARTICLE - objects connected by particle systems.
- LIBRARY / LIBRARY_OBDATA - linked library data, which you won't touch unless you're pulling assets from .blend libraries.
Output is a single BPY_OBJ, the active object, unchanged.
Where you'd use it
Two classic moves. First: you built an eye from a mesh, duplicated it for the other eye, and now want to modify both at once - select one, Select Linked with OBDATA, and both copies come along. Second: everything wearing the same material (all skin-toned parts, all hair-colored parts) is one MATERIAL selection away from a bulk operation. It's selection by identity instead of selection by container, which the grouped/collection nodes can't do.
Like all selection nodes here, it only matters inside a single graph run - the headless scene resets between runs, so "select the linked ones" has to happen fresh before the op that consumes the selection.
Installing it
Part of the Avatar Graph pack. 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
Pack-wide caveats: bpy==3.6.0 needs Python 3.10, and first import auto-downloads the SAM checkpoint and mediapipe models. And the classic trap: after you join meshes, linked copies stop existing - joined geometry is one new mesh, so OBDATA selection finds nothing. Do your linked selection before the join.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — | |
| extendopt | BOOLEAN | false | — |
| typeopt | COMBO | 6 options: OBDATA, MATERIAL, DUPGROUP, PARTICLE, LIBRARY, LIBRARY_OBDATA |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |