Nodes/Avatar Graph/Object Scale Clear
ComfyUI Node

Object Scale Clear

Reset scale to 1 without touching your rotation — the other cleanup node

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Object Scale Clear
  • BPY_OBJ
  • BPY_OBJ
clear_deltafalse

Object Scale Clear does exactly one thing: sets the active object's scale back to 1 on every axis. It wraps bpy.ops.object.scale_clear, Blender's "clear scale" button. If you've been stretching mesh layers to fit and want a clean, uniform object to build on top of, this is the reset button.

The one input that matters

Alongside BPY_OBJ there's a single toggle, clear_delta, off by default. Same story as its rotation sibling: Blender keeps a base scale and an optional delta scale. Turn clear_delta on and it also clears the delta, which you'll want when a transform or randomize node has left delta-scale residue behind. For the common "make this 1:1 again" case, leave it off.

Output is one BPY_OBJ - the same object, now at scale 1 - so it slots into any chain.

Why it matters in avatar graphs

The Avatar Graph pipeline stretches image planes into mesh layers, and stretched objects are a constant source of confusion downstream: a shape key that "should" look fine comes out distorted because the mesh it's attached to is scaled 2.4 on X. Running Scale Clear before you apply transforms or build shape keys gives every operation a known, sane starting point. In a real workflow you'll often see it paired with Object Rotation Clear - reset both, then apply the transform you actually want.

Like most of the pack, this node is auto-generated from Blender's operator list ('scale_clear' is in the object_api array in ops_mesh.py). That's why something as trivial as "clear scale" gets its own ComfyUI node - and honestly, once you've hit the "why is everything squished" wall once, you stop minding the clutter.

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

Same caveats as every node here: bpy==3.6.0 needs Python 3.10, and first import auto-downloads the SAM checkpoint and mediapipe models. And the one thing that trips people up: if your mesh still looks stretched after clearing, the non-uniform scale is probably baked into the geometry via transform_apply - clear the transform, then apply it, and check again.

Categoryblender

Inputs (2)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ
clear_deltaoptBOOLEANfalse

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ