
ComfyUI-NodeAligner 是一个轻量级的 ComfyUI 布局插件,包含节点对齐、分布和调整大小等功能。该插件旨在简化可视化节点编辑器或自定义 UI 组件中的布局调整,使节点排列更加方便和高效。
ComfyUI-NodeAligner is a lightweight ComfyUI layout plugin that includes features such as node alignment, distribution, and resizing. This plugin is designed to simplify layout adjustments in visual node editors or custom UI components, making node arrangement more convenient and efficient.
Align nodes to left, right, top, bottom.
Center nodes horizontally and vertically.
Equalize the width and height of selected nodes.
Distribute nodes evenly across horizontal or vertical space.
left 和 top 归零。Select a single node; left and top alignment will reset the node’s left and top to zero.
Hold the Shift or Ctrl key, select multiple nodes, and click the button to complete alignment and distribution.
Click on the blank space to deselect.
If no nodes are selected, clicking left alignment will return the canvas to “0,0” coordinates.
The black division line in the center of the right alignment button allows for component dragging and movement.
Right-click on this toolbar to choose the mode, with options for either pinning it or showing it after selecting nodes. (When selecting two or more nodes, this toolbar will appear next to the mouse.)
ps: 按住 Shift 进行拖拽可以对多个选择节点同时进行拖拽。
ps: Hold Shift to drag and move multiple selected nodes.
视频演示:https://space.bilibili.com/15855661?spm_id_from=333.337.search-card.all.click
Clone the repository:
“`bash
git clone https://github.com/Tenney95/ComfyUI-NodeAligner.git
“`
ComfyUI-NodeAligner 文件夹复制到 ComfyUI/custom_nodes 目录下。