An extension for laying out nodes neatly on the ComfyUI canvas. Works with both the classic renderer and Nodes 2.0.
Search for "Smart Guides" in ComfyUI Manager and install it.
forGitHub1.mp4
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.
forGitHub2.mp4
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.
forGitHub3.mp4
Resize a group from any of its four corners.
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)
MIT