Object Rotation Clear
Snap a rotated object back to identity — the tiny reset node
- BPY_OBJ
- BPY_OBJ
Object Rotation Clear is a one-job node: it wipes the rotation off the active object. It wraps bpy.ops.object.rotation_clear, which is Blender's "clear rotation" - the button that snaps an object's rotation back to zero degrees on all axes. There's no animation, no easing, no cleverness. It resets, and you move on.
The one input that matters
Besides BPY_OBJ (the object to clean up), there's a single toggle: clear_delta, off by default. Blender keeps two kinds of rotation - the base rotation and an optional delta rotation stacked on top of it. Flip clear_delta on and the node wipes the delta too, which is what you want when a transform node has left delta rotation junk behind. Leave it off for the everyday "straighten this thing out" case.
Output is a single BPY_OBJ, the same object now sitting at rotation zero, so it can feed straight into the next node in the chain.
Why a reset node is worth having
When you're building an avatar graph, rotation drift accumulates fast - a pose tweak here, a transform jitter there, and suddenly the head is tilted 3.7 degrees and you don't know why. Rotation Clear is the cheap way to normalize before applying the transform you actually care about. It pairs naturally with Object Scale Clear (its scale sibling) right before a transform_apply or a shape-key operation, so the object starts from a known state.
It's also a good example of how this pack works: it's auto-generated from Blender's operator list - 'rotation_clear' sits in the object_api array in ops_mesh.py - which is why you get a dedicated node for something that feels like a menu item. Cheap to ship, 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
Standard pack caveats: bpy==3.6.0 pins you to Python 3.10, and the first launch auto-downloads the SAM checkpoint and mediapipe models. One honest note: if your object's rotation won't clear, check whether you're fighting an applied rotation baked into the mesh - this node clears the object transform, not the geometry.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — | |
| clear_deltaopt | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |