Nodes/Avatar Graph/Mesh Loop Multi Select
ComfyUI Node

Mesh Loop Multi Select

Turning a starting edge into a full loop in Avatar Graph

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Mesh Loop Multi Select
  • BPY_OBJ
  • BPY_OBJ
ringfalse

If you've ever Alt-clicked an edge in Blender to grab the whole ring running around a cylinder or the loop tracing an eyelid, Mesh Loop Multi Select is that gesture as a node. Give it a mesh with some edges already selected, and it grows that selection outward along the connected loop (or the perpendicular ring, if you flip the mode), so you don't have to click your way around the geometry edge by edge.

How it works

This wraps Blender's mesh.loop_multi_select operator - the same one behind Alt-click loop selection in the viewport. It doesn't invent a selection from nothing: it needs at least one edge already selected coming in, and for each selected edge it walks the connected topology to find the full loop that edge belongs to, then selects every edge along that loop. Set ring on and it does the perpendicular version instead - selecting the ring of edges that run across the loops rather than along one, the classic edge-ring pattern you'd use to isolate a band around a cylindrical shape.

The inputs and outputs that matter

  • BPY_OBJ - the mesh, with whatever edges you want expanded already selected on it.
  • ring - boolean, default false. Off gives you loop selection (follow the connected edge chain); on gives you ring selection (the perpendicular band between two loops). These are genuinely different results on the same starting edge, so it's worth trying both if the first one doesn't grab what you expected.

Output is the same BPY_OBJ, now carrying the expanded selection - ready to hand to something like Mesh Mark Sharp, Mesh Dissolve Faces, or any other node in the pack that acts on whatever's currently selected.

How to install it

ComfyUI Manager, search "Avatar Graph" and install, or manually:

cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui

then pip install -r requirements.txt and restart. Needs Blender's bpy module, which only ships for Python 3.10.x - a dedicated conda environment on macOS/Linux, or Avatech's prebuilt Python-3.10 ComfyUI zip on Windows with the pack layered on via Manager. Add --enable-cors-header on launch (plus --force-fp16 on Mac) if you want the live avatar preview in Avatech's web editor; skip it and you just export .glb/.gltf instead.

Common issues & troubleshooting

A node that won't load is the pack's Python-version pin biting you, not this operator specifically - check the ComfyUI console at startup for an import failure and confirm a clean 3.10.x environment.

The mistake that actually trips people up here is upstream, not in this node: if nothing came in selected - say, a prior selection node ran on the wrong object, or selection got cleared by something earlier in the graph - this operator has nothing to grow from and effectively does nothing. It extends a selection; it doesn't create one from an angle threshold or a name the way Mesh Edges Select Sharp does. If you're getting an unchanged or empty selection out, check what's actually selected going in before assuming the node is broken. And if the loop it grabs runs the "wrong" direction across the mesh - following a seam you didn't want instead of the boundary you meant - that's topology, not a bug: loop selection follows however the edges are actually connected, which on a mesh built by Avatar Graph's own generation and cleanup nodes can wind up less predictable than on something hand-modeled with clean edge flow.

Categoryblender

Inputs (2)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ
ringoptBOOLEANfalse

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ