Object Set Show Instancer For Viewport
Instancer visible in the editor but not in the render
- BPY_OBJ
- BPY_OBJ
Object Set Show Instancer For Viewport toggles show_instancer_for_viewport - the Blender flag that decides whether an instancer object (particle emitter, dupliface mesh, collection instance) is drawn in the viewport. Default true, so you see your emitters while you work. This is the viewport half of the instancer-visibility pair; its render twin is show_instancer_for_render.
How it works
Another auto-generated setter from bpy.types.Object's properties: setattr(object, "show_instancer_for_viewport", value) on the embedded bpy instance, returning the same BPY_OBJ. The value input is a BOOLEAN with default true.
The useful pattern is the asymmetric one. Set show_instancer_for_viewport to false and you hide the instancer in the editor while it still appears in renders - perfect when a particle system's scaffolding clogs the viewport but you want the result in the output. Or flip only the render flag via its sibling node and keep the instancer visible on screen. Together the two nodes give you full control over the emitter's visibility in each context, which is the kind of thing that only matters once your scene has instancing at all.
The inputs
- BPY_OBJ - the instancer object.
- value - boolean, default
true.
Output: the same BPY_OBJ.
Install & gotchas
Ships with the Avatar Graph pack:
cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui
cd avatar-graph-comfyui && python -m pip install -r requirements.txt
Or ComfyUI Manager → "Avatar Graph". The pack pins bpy==3.6.0, needing Python 3.10 in your ComfyUI environment - bpy has no wheel for 3.11+, so on a newer runtime the pack won't even import. Conda with python=3.10 per the README. First launch downloads a ~2.5 GB SAM model plus mediapipe landmarker files.
Reality: in a standard avatar graph you have no instancers and this node does nothing useful - the default true is what you want. It only enters the picture if you've added particles or instance-based geometry. And don't confuse the two flags: if something's missing from the render but present on screen, that's show_instancer_for_render, not this one. Standard setters' rules: wire downstream of creation (scene resets each queue run), viewport/render flags never affect the exported avatar geometry, and the live editor preview needs --enable-cors-header.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — | |
| valueopt | BOOLEAN | true | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |