Nodes/Avatar Graph/Object Set Hide Select
ComfyUI Node

Object Set Hide Select

The 'stop grabbing me' flag for Blender objects

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Object Set Hide Select
  • BPY_OBJ
  • BPY_OBJ
valuefalse

Every Blender user has had the moment: you're reaching for the avatar mesh and your cursor keeps catching the wrong thing - usually a helper empty or a control object sitting right on top of it. ObjectSet Hide Select is Avatar Graph's answer, and the answer is a single boolean.

Set value to true and the object becomes unclickable and unselectable in the viewport. That's the entire feature: it's Blender's hide_select property, and it changes nothing about how the object renders, moves, or exports. The object is still there, still fully functional, still visible - it just refuses to be selected. Think of it as a lock on the scene-graph version of the object.

Where this actually helps in an avatar workflow: you've got a chain of empties or control objects used as pivots for the eyes and mouth, and once they're positioned you don't want to keep fat-fingering them while you poke at the real mesh. Hide-select the helpers and you can work without gloves. The default is false, and if you're the fiddly type who repositions things a lot, you may genuinely prefer to leave selection alone.

How it works

Standard ObjectSet_* plumbing, no surprises. These nodes are auto-generated from a dump of Blender's bpy.types.Object properties (blender/input_types.txt), and each one is a one-property setter: feed it a BPY_OBJ, it calls setattr on the underlying Blender object, and passes the object back out unchanged so you can keep chaining.

Inputs that matter:

  • BPY_OBJ - the object you want to stop accidentally selecting
  • value - boolean, default false; true makes it unselectable

Output is the same BPY_OBJ, ready for the next setter or the Avatar Main Output node.

Installing Avatar Graph

One install covers this node and the whole pack:

cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui
cd avatar-graph-comfyui && pip install -r requirements.txt

Or ComfyUI Manager → Install Custom Nodes → search Avatar Graph → restart. Pack-level gotchas apply: it pins bpy==3.6.0 and so needs Python 3.10 (bundled 3.10 environment on Windows; conda env on macOS/Linux), and first launch auto-downloads the SAM ViT-H model plus mediapipe landmarkers.

Common issues

The two easy confusions are with the other two hide flags. hide_select is selection-only: the object still renders. If you set hide_render expecting to lock selection, you've hidden it from the output instead - different node, different job. And remember this pack rebuilds its Blender scene from factory settings on every run, so hide flags are set by your graph each execution, not remembered from a previous session. Set them on the right node in the chain and they apply; skip the node and the object is back to being grabby.

Categoryblender

Inputs (2)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ
valueoptBOOLEANfalse

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ