Nodes/Avatar Graph/Mesh Uv Texture Remove
ComfyUI Node

Mesh Uv Texture Remove

Clearing a stray UV map before you redo it

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Mesh Uv Texture Remove
  • BPY_OBJ
  • BPY_OBJ

The counterpart to Mesh_UvTextureAdd: where that node opens a new UV channel, this one deletes the active one. Simple, and mostly useful for cleanup rather than anything creative.

What it is and why you'd reach for it

Mesh_UvTextureRemove wraps Blender's bpy.ops.mesh.uv_texture_remove() directly. Avatar Graph runs actual Blender inside ComfyUI via the bpy package, and this is another one of the Mesh_* nodes that's a thin pass-through to Blender's own operator set - no extra logic on top, just "delete the mesh's active UV map slot."

You'll want this when a mesh ends up with a UV channel you didn't mean to keep - a stray auto-generated map, or a leftover from an earlier unwrap attempt that you're replacing. In an Avatar Graph pipeline that's usually a mesh you built or edited more than once and want to start the UV step over cleanly on, rather than stacking a new unwrap on top of an old, wrong one.

Inputs and outputs that matter

One field, same as its sibling node:

  • BPY_OBJ (optional) - the mesh whose active UV channel you want removed.

Output: a single BPY_OBJ, with that UV map slot now gone. If the mesh had more than one UV channel, whichever was "active" is the one that gets deleted - worth checking which channel is active before running this if the mesh has multiple.

Like Mesh_UvTextureAdd, this operates at the object/mesh-data level rather than depending on a vertex or face selection - it's removing a whole data channel, not editing selected geometry.

Installing Avatar Graph

bpy - the foundation this whole pack is built on - only ships wheels for Python 3.10.x. Get your environment pinned to that first.

ComfyUI Manager: search avatar-graph-comfyui, install, restart. Or manually:

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

Restart with python main.py --enable-cors-header (--force-fp16 too on Mac). Windows users get a prebuilt Python 3.10 environment from the README; macOS/Linux is pointed at conda create --name comfyui python=3.10.

Common issues

Ran it and the texture disappeared entirely. That's expected if the removed channel was the only one, or the one your material was actually reading from. Re-add a channel with Mesh_UvTextureAdd and re-unwrap (Plane Texture Unwrap) before reassigning the texture.

Removed the wrong UV map on a multi-channel mesh. This node always targets the active UV channel - if the mesh has more than one and the wrong one is active, switch which channel is active before running it (or just be careful about ordering in a graph you built to have more than one UV set in the first place).

Nodes not appearing in ComfyUI. Check python --version is exactly 3.10.x. bpy won't import outside that, and the whole pack fails to load silently.

No live avatar preview panel. Needs --enable-cors-header at launch to bridge to the embedded editor.avatech.ai panel. Without it, the graph still runs - export the result via right-click → Save File on Avatar Main Output instead.

Categoryblender

Inputs (1)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ