Smart Guides
Smart guides for the ComfyUI canvas: nodes snap to straight wires and to other nodes' edges, and selections can be aligned and evenly spaced.
ComfyUI Smart Guides
An extension for laying out nodes neatly on the ComfyUI canvas. Works with both the classic renderer and Nodes 2.0.
Installation
Search for "Smart Guides" in ComfyUI Manager and install it.
Smart guides
https://github.com/user-attachments/assets/a5a9083c-f81f-4f38-9ab7-d7f8246ff848
When you drag or resize a node or group, it snaps to:
- positions where wires become horizontal
- the edges of other nodes and groups
- positions right next to another node or group
Guide lines appear on aligned edges. Hold Shift while moving to turn snapping off.
Align and distribute
https://github.com/user-attachments/assets/2e4ee913-2235-46dc-9384-d48deccdb8ff
Select two or more nodes and press the align button in the selection toolbox to open the menu.
- Align left, center, right, top, middle, or bottom
- Match width or height
- Distribute evenly, horizontally or vertically
After distributing, a handle appears in each gap. Drag one to change all the gaps together.
[!NOTE] If "Show selection toolbox" is turned off in ComfyUI's settings, the align button appears next to Run.
Group resizing
https://github.com/user-attachments/assets/e2b46283-742c-4c03-b99a-cfa1206984fe
Resize a group from any of its four corners.
Settings
The following can be set in ComfyUI's ⚙ Settings → Smart Guides tab:
- Snap while dragging and resizing
- Snap to make wires horizontal
- Snap to other nodes' and groups' edges
- Snap distance (screen pixels)
- Guide color (the theme's accent color, or a color you choose)
License
MIT