Nodes/Avatar Graph/Mesh Customdata Crease Edge Clear
ComfyUI Node

Mesh Customdata Crease Edge Clear

Strips edge-crease data back out of a mesh

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Mesh Customdata Crease Edge Clear
  • BPY_OBJ
  • BPY_OBJ

This is the teardown counterpart to Mesh_CustomdataCreaseEdgeAdd. It wraps Blender's bpy.ops.mesh.customdata_crease_edge_clear operator directly, and like most of this pack's Customdata nodes, the schema is just a mesh object in and the same mesh object out - nothing to configure.

What it actually does

Edge crease is optional per-edge data that tells a Subdivision Surface modifier which edges should resist smoothing. This node removes that data layer from the mesh entirely - not reset to zero, actually deleted. If any edges had a non-zero crease value set, that information is gone after this runs, and a subsequent subdivision step will treat every edge as uncreased (crease = 0, same as an edge that never had the layer at all).

You'd use this to genuinely undo creasing work you no longer want, or to strip the layer before export/handoff if nothing downstream needs it. It won't visually change a mesh unless something was actively reading non-zero crease values before you ran it - clear a layer that was already all-zero and nothing looks different.

The input and output that matter

  • BPY_OBJ (optional) - the mesh to remove the edge-crease layer from.

Output is the same BPY_OBJ, minus that data layer if it existed.

How to install it

ComfyUI Manager: search "Avatar Graph" (avatar-graph-comfyui) and install. Manual route:

cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui
cd avatar-graph-comfyui
python -m pip install -r requirements.txt

then restart. The hard requirement across the whole pack is Python 3.10.x, because requirements.txt pins bpy==3.6.0 and Blender's Python module won't build on anything newer. Use the README's prebuilt Python-3.10 zip on Windows, or a dedicated conda environment on Mac/Linux - don't try to bolt bpy onto an existing 3.11/3.12 ComfyUI install. The rest of requirements.txt (opencv-python, mediapipe, segment-anything) is unpinned but still sizeable, so expect a slower-than-average install.

Common issues & troubleshooting

"The mesh looks the same before and after." Expected if the crease layer was already all-zero, or if nothing downstream in your graph was reading crease values to begin with - this node's effect is invisible unless a subdivision step was actually using the data you just removed.

bpy fails to import when ComfyUI starts. Almost always a Python version mismatch. Confirm you're on 3.10.x specifically before debugging anything node-level.

You cleared the layer but a later step in your graph still expects one. Any node further downstream that reads or writes edge crease will silently treat every edge as crease-0 after this runs - if you clear it and then chain into a crease-setting node, that's fine (the add happens implicitly), but if you clear it and expect old values to still be readable somewhere, they aren't; this is a real delete, not a soft reset.

Categoryblender

Inputs (1)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ