Nodes/Avatar Graph/Mesh Loop Select
ComfyUI Node

Mesh Loop Select

The Alt+Click gesture as a node

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

This is Blender's Alt+Click loop selection, wrapped as a node - select the active edge, and it grows outward along the connected loop that edge belongs to. It's a close relative of Mesh Loop Multi Select in this same pack; the difference is in how each one decides what to extend and what modifier-key behavior it mimics.

How it works

This wraps Blender's mesh.loop_select operator. It doesn't take an explicit index for which edge to start from - like the interactive Alt+Click, it works from whatever edge is currently active in the mesh's selection (typically the most recently selected element). From there it follows the connected edge topology to select the full loop running through it, or with ring enabled, the perpendicular ring of edges instead. Where Mesh Loop Multi Select is built to extend every currently selected edge into its own loop at once, this node acts on the single active edge and exposes the selection modifiers - extend, deselect, toggle - you'd normally trigger by holding Shift or Ctrl while clicking.

The inputs and outputs that matter

  • BPY_OBJ (optional) - the mesh, with the edge to grow from set as the active element.
  • extend (default false) - adds the new loop to whatever's already selected instead of replacing the selection, mirroring Shift+Alt+Click.
  • deselect (default false) - removes the found loop from the current selection instead of adding it, mirroring Ctrl+Alt+Click.
  • toggle (default false) - flips the selected state of the loop's edges rather than forcing them on or off.
  • ring (default false) - selects the perpendicular edge ring instead of the connected loop.

Output is the same BPY_OBJ, with the updated selection, ready for whatever downstream node acts on it - Mesh Mark Seam, Mesh Dissolve Edges, or similar.

How to install it

ComfyUI Manager: search "Avatar Graph" and install. 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, pinned to 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 installed through Manager afterward.

Common issues & troubleshooting

Selection comes out empty or unchanged. This node needs an active edge to grow from, not just any selected geometry - if the upstream node left multiple edges selected with no clear "active" one, or nothing selected at all, there's nothing for it to loop-select from. If you need every currently selected edge extended into its own loop, Mesh Loop Multi Select is the more appropriate node for that.

Got the ring instead of the loop, or vice versa. That's the ring flag - the two results are genuinely different selections on identical starting geometry, so it's worth checking that setting first before assuming the topology is at fault.

Selecting when you meant to deselect (or the reverse). Check extend/deselect/toggle - leaving all three off replaces the current selection outright, which surprises people used to the interactive modifier-key behavior carrying over by default.

Categoryblender

Inputs (5)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ
extendoptBOOLEANfalse
deselectoptBOOLEANfalse
toggleoptBOOLEANfalse
ringoptBOOLEANfalse

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ