Skip to content

About

Smart guides for the ComfyUI canvas: nodes snap to straight wires and to other nodes' edges, and selections can be aligned and evenly spaced.

Resources

Stars

46 stars

Watchers

1 watching

Forks

Repository files navigation

ComfyUI Smart Guides

English 日本語

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

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.

Align and distribute

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.

Group resizing

forGitHub3.mp4

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

About

Smart guides for the ComfyUI canvas: nodes snap to straight wires and to other nodes' edges, and selections can be aligned and evenly spaced.

Resources

Stars

46 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages