Nodes/Avatar Graph/Object Set Show Wire
ComfyUI Node

Object Set Show Wire

Toggling the wireframe overlay on an object in Avatar Graph

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Object Set Show Wire
  • BPY_OBJ
  • BPY_OBJ
valuefalse

A pure display toggle, not a geometry operation: Object Set Show Wire flips the "Wireframe" checkbox you'd find in Blender's Object Properties → Viewport Display panel, showing (or hiding) the mesh's edge wireframe overlaid on the shaded surface.

How it works

Rather than wrapping a Blender operator, this sets a property directly - object.show_wire - on the object's viewport display settings. It doesn't touch the mesh, the materials, or anything that affects a render; it only changes how the object is drawn in Blender's own viewport. In a pipeline built around Avatar Graph's live avatar preview (the CORS-connected view in Avatech's web editor), turning this on for an object mid-graph is a way to visually sanity-check topology - confirming a decimate or remesh step actually simplified the mesh the way you expected - without switching into Blender's edit mode to look.

The inputs and outputs that matter

  • BPY_OBJ - the object to change the display setting on.
  • value - boolean, default false. true shows the wireframe overlay; false hides it.

Output is a single BPY_OBJ, the same object with its wireframe display setting updated.

How to install it

ComfyUI Manager, search "Avatar Graph" and install, or manually:

cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui

then pip install -r requirements.txt and restart. Needs Blender's bpy module, pinned to Python 3.10.x - a dedicated conda environment on macOS/Linux, or Avatech's prebuilt Python-3.10 ComfyUI zip on Windows with the pack installed through Manager afterward. If you actually want to see this setting take visual effect - rather than just confirm it ran without erroring - you need the live preview working, which means launching with --enable-cors-header (--force-fp16 too on Mac); without it, there's no viewport to show a wireframe overlay in.

Common issues & troubleshooting

If the node won't load, that's the pack's Python-version pin, not this one specifically - check ComfyUI's console at startup for an import error and confirm a clean Python 3.10.x environment.

Because this changes a display-only property, it's easy to run it, see no difference in your final exported .glb/.gltf, and wonder if it did anything - it did, but export formats don't carry Blender's viewport display settings, so this has no bearing on what a downstream export or a non-live-preview pipeline produces. It's specifically useful when you're debugging inside the connected editor's live view and want a quick visual read on mesh density, not as a step that changes final output.

Where it actually earns a spot in a graph rather than being something you'd only toggle by hand: leaving it wired into a debug branch of your workflow, feeding a specific object into it right after a decimate or remesh step, so every time you re-run the graph while iterating on those settings, the live preview immediately shows the resulting topology as a wireframe instead of you having to reopen Blender separately to check. Once you're happy with the result and moving toward a final export, there's no harm in leaving the node in place with value set back to false - it just won't be doing anything visible at that point, which is fine, since it never affected the geometry to begin with.

Categoryblender

Inputs (2)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ
valueoptBOOLEANfalse

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ