Object Select Camera
Find your cameras in a scene that has one of everything
- BPY_OBJ
- BPY_OBJ
Object Select Camera is a one-trick node: it selects all the camera objects in the scene and nothing else. It wraps bpy.ops.object.select_camera, which exists in Blender because when you're deep in a scene with dozens of objects, you want a shortcut to "just the cameras please." Inside Avatar Graph it's the same, applied to the headless Blender scene your avatar is being built in.
Inputs and outputs
The only knob beyond BPY_OBJ is extend (off by default). Off means the camera selection replaces whatever was selected; on means it adds cameras to the existing selection. If you're selecting cameras to then modify alongside your meshes, extend on is the setting that won't wipe your hard-won selection.
Output is a single BPY_OBJ, the active object, which doesn't change - the node's effect lives in the scene's selection state.
When you'd bother
Honestly? Less often than the mesh-selection nodes. This pack's sweet spot is turning image layers into a riggable avatar, and cameras are a side quest. But if you're doing the Pose Constraints / ControlNet templates, or exporting a view of the character, you'll want a camera set up - and Select Camera is the "show me the cameras" move before you wire one into a render node. It's also the simplest way to check whether your graph accidentally created a pile of duplicate cameras, which happens more than you'd think when template nodes add cameras.
It's auto-generated from the pack's object_api list in ops_mesh.py ('select_camera'), which is the same reason you have a dedicated node for something that in Blender is a menu click. Cheap, focused, occasionally exactly what you need.
Installing it
Part of the Avatar Graph pack. ComfyUI Manager → search "Avatar Graph" → install → restart, 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
Pack-wide caveats apply: bpy==3.6.0 needs Python 3.10, first import auto-downloads the SAM and mediapipe models, and the scene resets between runs - so your camera selection, like everything else, is rebuilt fresh on every execution. If you select cameras and immediately render something "from the wrong angle," check whether the camera you meant is even in the scene's active selection anymore.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — | |
| extendopt | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |