Transform Delete Orientation
The cleanup node for custom orientations you no longer need
- BPY_OBJ
- BPY_OBJ
Transform Delete Orientation is the smallest node in Avatar Graph's transform family, and possibly the entire pack. It wraps bpy.ops.transform.delete_orientation, which deletes the currently active transform orientation from Blender's scene. That's it. One input (BPY_OBJ, optional), one output (BPY_OBJ), no parameters to fiddle with.
You'd reach for it in exactly one situation: you've been making named custom orientations with its sibling Transform_CreateOrientation - aligning transforms to a jaw, a head, a camera - and your scene is accumulating orientations you don't use anymore. This deletes the active one so you don't trip over stale frames of reference later. It's the broom of the pair: Create makes messes, Delete cleans them up.
How it works
Like all Transform_* nodes here it inherits EditOps, so it deselects everything, sets your BPY_OBJ active, enters edit mode, runs the delete-operator, and returns to object mode with your object unchanged. The node has no exposed widgets because the operator takes no parameters - it just deletes whatever orientation is active at the moment it runs. If nothing is active, it's a harmless no-op that still passes BPY_OBJ straight through.
Worth knowing the practical wrinkle: since it deletes the active orientation, order matters in your graph. If you want to delete a specific named orientation, make sure that one is active when this node fires - often by chaining it right after something that selects or activates that orientation. And because the pack resets its shared Blender scene at the start of every execution, this node mostly matters within a single run where you've created orientations earlier in the same graph.
Inputs that matter
- BPY_OBJ - optional; it just sets the active object. The deletion targets the scene's active orientation regardless.
Output: BPY_OBJ - your object, untouched, passed through so the chain keeps flowing.
Installing it
Ships in the Avatar Graph pack. 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 after. Pack gotchas apply: bpy==3.6.0 pins you to Python 3.10.x (3.11+ breaks the whole pack's import), and first launch downloads the SAM ViT-H model (~2.5 GB) to ComfyUI/models/sams plus two MediaPipe landmarker files.
Common issues
- "No module named bpy" → Python 3.10.x required. Standard for this pack.
- It deleted the wrong orientation → it deletes whatever is active, not whatever you wanted deleted. Sequence your graph so the right orientation is active, or accept the reset-scene reality and handle cleanup at the end of a run.
- "Nothing happened" → no active orientation = no-op. Not a bug.
It's a two-second utility. If you never create custom orientations, you'll never need it - but it's worth knowing Delete exists so your workflow can be tidy instead of leaving a trail of stale frames behind.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |