Object Make Links Scene
Put the same object into another scene without copying it
- BPY_OBJ
- scene
- BPY_OBJ
Blender scenes are like separate stage sets that can share the same props. Object_MakeLinksScene wraps bpy.ops.object.make_links_scene(), which takes the active object and adds it to another scene as a linked instance - not a copy. One mesh, two stages. Move it in one scene and it moves in the other, because it's the same object shown in two places.
This is one of the more niche nodes in Avatar Graph's Object_ family, and I'll be straight with you: for the core avatar pipeline - segment an image, build a mesh layer, shape keys, Shape Flow - you won't need it. It's there because the pack auto-generates a node for nearly every Blender object operator, and scene linking made the cut. You reach for it when a workflow wants the same character visible in multiple environments, or when you're prepping a multi-scene export.
The mechanism. Like every Object_ node here, it sets your wired-in BPY_OBJ as the active object, calls the Blender operator, and hands the object back. The only real input is scene, which is a runtime enum (B_ENUM) listing the scenes that exist in the hidden Blender session. Since the pack resets the scene with Blender factory settings at the start of each run, a fresh graph typically has exactly one scene - so the dropdown is empty or single-entry until you've created more scenes with other nodes.
Inputs.
BPY_OBJ- the object to link into another scene.scene- the destination scene. If there's only one scene, there's nothing to link to.
Output. BPY_OBJ, passed through unchanged, so the node never breaks your chain.
Installing it. This ships in the Avatar Graph pack. Install via ComfyUI Manager (search "Avatar Graph") 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
Restart ComfyUI with --enable-cors-header for the live avatar preview. The pack pins bpy==3.6.0, which requires Python 3.10.x - on a 3.11+ ComfyUI, bpy won't import and every Object_ node errors out.
Troubleshooting. If the scene dropdown is empty, that's expected - there's one scene and nothing to link to; create a second scene first. If you expect linked objects to behave differently than copies and they don't, remember: linking shares the object, so any edit in either scene propagates. That's the feature. It's also the reason you'd pick this over duplicating, and the reason people occasionally confuse it with "copy to scene," which it isn't.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — | |
| sceneopt | B_ENUM | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |