1.5 KiB
1.5 KiB
ComfyUI-NodeAligner
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.
功能 Features
- 节点左对齐、右对齐、顶部对齐、底部对齐
Align nodes to left, right, top, bottom - 水平和垂直居中对齐
Center nodes horizontally and vertically - 使选中的节点等宽等高
Equalize width and height of selected nodes - 水平或垂直均匀分布节点
Distribute nodes evenly across horizontal or vertical space
使用方法 Method of application
- 选择单个节点,左对齐和顶部对齐会使节点的 left 和 top 归零
Select a single node; left and top alignment will reset the node's left and top to zero. - 按住 Shift 键或 Ctrl 键,点选多个节点,点击按钮,即可完成对齐和分布
Hold the Shift or Ctrl key, select multiple nodes, and click the button to complete alignment and distribution.
安装 Installation
- 克隆仓库:
Clone the repository:
git clone https://github.com/Tenney95/ComfyUI-NodeAligner.git