Mesh Customdata Bevel Weight Edge Clear
The reverse of Add — wipes the layer out
- BPY_OBJ
- BPY_OBJ
The mirror image of Mesh Customdata Bevel Weight Edge Add, and just as parameter-free - no configurable fields, the mesh object goes in and comes back out. It wraps Blender's bpy.ops.mesh.customdata_bevel_weight_edge_clear operator directly, part of Avatar Graph's practice of auto-generating a ComfyUI node per Blender mesh operator rather than writing bespoke logic for each one.
What it actually does
Where the "Add" version creates the per-edge bevel-weight data layer on a mesh (Blender doesn't keep this layer by default; it's opt-in custom data), this one removes it entirely - not just resets values to zero, the layer itself goes away. Anything downstream that was reading per-edge bevel weights (a weighted bevel, a modifier configured to use edge weights) will find no data to read afterward, and will fall back to whatever its non-weighted default behaves like.
You'd reach for this at the tail end of a stage where per-edge weighting was only ever a means to an end - say you added the layer, drove a one-off weighted bevel with it earlier in the graph, and now want a clean mesh with no leftover custom data before exporting or handing it to a later stage that has no reason to expect it. It's tidy-up, not something most avatar-rigging graphs strictly need to run.
The input and output
BPY_OBJ(optional) - the mesh object to clear the layer from.
Output is the same BPY_OBJ, geometry unchanged, passed through for chaining.
How to install it
Via ComfyUI Manager: search "Avatar Graph" (avatar-graph-comfyui), install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui
cd avatar-graph-comfyui
pip install -r requirements.txt
The pack's hard blocker: bpy==3.6.0 is pinned in requirements.txt and only builds on Python 3.10.x. Windows users get a bundled Python 3.10 ComfyUI zip from the README; Mac/Linux users should build a dedicated conda environment (conda create --name comfyui python=3.10) rather than fighting an existing 3.11/3.12 setup. Expect a heavier install overall - segment-anything, mediapipe, and OpenCV all come along.
Common issues & troubleshooting
A weighted bevel stopped respecting per-edge weights after this runs. That's the expected effect, not a bug - clearing the layer removes the data those weights lived in. If you didn't mean to lose it, this node shouldn't be in that part of your graph, or should run only once you're done needing per-edge weighting.
"It doesn't seem to do anything visible." Correct - like its "Add" counterpart, this changes what data exists on the mesh, not the mesh's shape. There's nothing to see directly; the effect only shows up in how a downstream weighted operation behaves afterward.
Called on a mesh that never had the layer. Blender's clear operator is safe here too - nothing to remove, nothing happens, no error. You don't need to check whether the layer exists before calling this.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |