Nodes/Avatar Graph/Object Vertex Weight Paste
ComfyUI Node

Object Vertex Weight Paste

Paste a Copied Weight Profile Onto a Vertex

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Object Vertex Weight Paste
  • BPY_OBJ
  • BPY_OBJ
weight_group-1

Copy-paste is the fastest way to make one vertex match another, and Object Vertex Weight Paste is the paste half of that pair. It takes whatever weight profile is sitting on Blender's clipboard - set there by Object Vertex Weight Copy - and applies it to the active vertex in the weight group you specify.

Where this shines: you've tuned one vertex's influence on a cheek group until it's perfect, and you've got a dozen neighbors that should match it exactly. Paste beats re-painting every time.

How it works

An auto-generated wrapper around Blender's bpy.ops.object.vertex_weight_paste. Inputs:

  • weight_group - the group index to paste into (an integer; default -1 means all groups).
  • BPY_OBJ - the mesh.

The active vertex is the destination. So the full recipe across two nodes is: make the source vertex active, Copy; then make the target vertex active and Paste with the right group index. The clipboard persists between nodes, so you can Copy once and Paste onto many vertices in sequence - a real time-saver when matching a run of verts.

Output is the same BPY_OBJ, ready to chain into a normalize or smooth afterward.

Common issues

The most common failure is pasting onto the wrong vertex because nothing set the active one - or pasting into -1 (all groups) when you meant one group. The index-vs-name thing bites here too: this field takes a number, not a name.

Second, an empty clipboard. If Copy never ran in your chain, Paste has nothing to work with and silently no-ops. Copy first - the clipboard is the contract between the two nodes.

And the pack's standing rule applies: this all runs on a real BPY_OBJ from upstream mesh nodes like Create Mesh Layer. No mesh, no paste.

Categoryblender

Inputs (2)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ
weight_groupoptINT-1-1–2147483647

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ