Object Constraints Copy
Clone one object's constraint stack onto others
- BPY_OBJ
- BPY_OBJ
A direct wrap of bpy.ops.object.constraints_copy() - Blender's "Copy Constraints to Selected" operator. It takes the entire constraint stack from the active object and copies it onto every other selected object, in one call, instead of you re-adding and re-configuring each constraint by hand on every object.
Where it fits in Avatar Graph
Avatar Graph (avatechai/avatar-graph-comfyui) rigs a flat character image into a real-time interactive avatar - segmentation, mesh layers, a "Shape Flow" runtime graph, exported through Avatar Main Output. Constraints sit outside that documented pipeline (the pack's rigging runs on shape keys and Shape Flow, not Blender's constraint system); this node belongs to the much larger family the pack generates by exposing Blender's Object operators directly. It's a genuinely handy batch tool if you're setting up matching constraint behavior across several Blender objects around your avatar rig, but it's not part of the core tutorial flow.
How it works
Rather than reading and re-applying each individual constraint's settings, this operator copies the whole stack as-is - types, targets, influence values, everything - from the active object onto the other selected objects, replacing whatever constraints those objects already had. It's a bulk-apply, not a merge.
Inputs and outputs
BPY_OBJ(optional) - the source object whose constraints get copied. Unwired, it falls back to Blender's active object.
Output: BPY_OBJ - the same (source) object, passed through, matching every other node in this family. As with Object Constraint Add With Targets, which objects actually receive the copy depends on Blender's selection state at the time this node runs, not an explicit socket on the node - there's no field here listing destination objects.
How to install it
ComfyUI Manager: search "avatar-graph-comfyui", install, restart. Manual clone:
cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui
cd avatar-graph-comfyui && python -m pip install -r requirements.txt
The requirement that actually matters: bpy needs Python 3.10.x, nothing later. Windows gets a prebuilt Python 3.10 ComfyUI zip from the README; on Mac/Linux, build a dedicated conda env (conda create --name comfyui python=3.10). Restart with --enable-cors-header if you want the live avatar preview to talk to editor.avatech.ai - file exports work without it.
Common issues & troubleshooting
Install problems almost always come down to Python version - a 3.11/3.12 environment, the default on most current ComfyUI installs, can't load bpy. There's also a real report of Avatar Graph leaving a ComfyUI Desktop install badly broken after install (an oversized logo, an unexpected audio-permission popup) severe enough that a full reinstall didn't fully clear it - worth testing in a spare, portable ComfyUI instance first if you're not already isolated on 3.10.
For this node: because it's a replace, not a merge, running it on objects that already had their own useful constraints will overwrite those with the source's stack - there's no way to combine the two through this node alone. And since destination objects come from selection state rather than an explicit input, double-check what's actually selected at that point in your graph before relying on the result.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |