Object Vertex Group Copy To Selected
Copying weights to other objects, if you can get them selected
- BPY_OBJ
- BPY_OBJ
Object Vertex Group Copy To Selected does what it says: it copies all the vertex groups from the active object onto every other selected object in the scene. In Blender proper, it's the operator you use when you've carefully weighted one character and want the exact same groups on a duplicate or a sibling mesh - bpy.ops.object.vertex_group_copy_to_selected().
The honest part, and it's a real caveat in this pack: the operator works on selection, and the node's own base class deselects every object except your BPY_OBJ before running. So on a plain graph where your only object is the one on the wire, there are no recipients and the node is a silent no-op. It only does anything when other objects are selected inside the Blender scene - which in the Avatar Graph flow means you've built a multi-object scene through earlier steps that established a selection. This is one of the pack's auto-generated wrappers where the graph model (pass one object, get one object back) fights with the operator's real semantics (one active object, many selected recipients).
When it works, it's genuinely handy: the avatar pipeline sometimes needs matching groups across an eye mesh and a duplicate, or across several layered meshes that share deformation regions. Copy-to-selected saves re-building the groups by hand.
Input is BPY_OBJ - the source object whose groups get copied; it becomes the active object, and its groups land on whatever else is selected. Output is the same BPY_OBJ passed through. There are no tuning parameters.
Install is pack-wide: ComfyUI Manager → "Avatar Graph", or git clone https://github.com/avatechai/avatar-graph-comfyui into ComfyUI/custom_nodes and pip install -r requirements.txt on Python 3.10 (bpy==3.6.0). First launch downloads the ~2.4 GB SAM model.
Troubleshooting centers on that selection problem. If you wire it up and nothing arrives on the recipient meshes, the first suspect is "no other objects were selected," not a crash. There's also the pack's usual reset: the Blender scene is wiped at the start of each run, so whatever selection you arranged last run is gone - the selection has to be established within the same run. If the group-copying is fighting you, the pragmatic alternative is often to copy groups on the same object with Object Vertex Group Copy and skip the multi-object dance entirely.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |