ComfyUI-Workflow-Tools
A collection of custom nodes for ComfyUI.
Installation
Clone into your ComfyUI custom_nodes folder:
cd ComfyUI/custom_nodes
git clone [https://github.com/Danchi93/ComfyUI-Workflow-Tools](https://github.com/Danchi93/ComfyUI-Workflow-Tools)
Restart ComfyUI.
Multi LoRA Loader
Manage multiple LoRAs in a single node.
Features
- Enable/disable each LoRA with a toggle switch
- Adjust weight per LoRA
- Add notes to each LoRA
- Add/remove LoRAs dynamically
Usage
Add the Multi LoRA Loader node in your workflow. Connect the model input, then use the output as you would a standard LoRA Loader.
Language
The UI defaults to English. To switch to Chinese, open multi_lora_loader.js and change line 4:
const LANG = "zh"; // "en" for English, "zh" for Chinese
Prompt Segments
Combine multiple prompt segments into one node with auto-complete, ordered output, and direct CLIP conditioning.
Features
- Add/remove prompt segments dynamically
- Enable/disable each segment individually with a toggle
- Label each segment for quick organization
- Tag auto-complete — type 2+ characters to see suggestions from a 10,000+ Danbooru tag dictionary; click a tag to insert it, or use arrow keys + Tab to navigate with keyboard
- Insert position control — choose where the incoming
prompts_intext is placed (before segment 1, between segments, etc.) - Direct CLIP output — optional CLIP input/output lets you connect straight to the KSampler without a separate CLIP Text Encoder node
- Outputs all enabled segments merged in order
Usage
Add the Prompt Segments node. Connect prompts_out to a CLIP Text Encoder (or any text input), or optionally connect a CLIP model to use the conditioning output directly on a KSampler.
Resolution Switcher
Quickly switch between pre-configured resolutions without manually re-typing dimensions every time. It outputs a blank latent image with the selected size.
Features
- Pre-define multiple resolution presets (Width, Height, and Batch Size)
- Switch between resolutions instantly using toggle switches
- Dynamically add or remove resolution presets
- Eliminates the need to repeatedly input dimensions when testing different aspect ratios
Usage
Add the Resolution Switcher node in your workflow. Pre-set your frequently used dimensions, toggle the one you want to use, and connect the Latent output to your KSampler or any node that accepts latent input.
Language
The UI defaults to English. To switch to Chinese, open resolution_switcher.js and change line 4:
const LANG = "zh"; // "en" for English, "zh" for Chinese
中文介绍
本仓库包含多个 ComfyUI 自定义节点。
安装方法
将仓库克隆到 ComfyUI 的 custom_nodes 目录:
cd ComfyUI/custom_nodes
git clone [https://github.com/Danchi93/ComfyUI-Workflow-Tools](https://github.com/Danchi93/ComfyUI-Workflow-Tools)
重启 ComfyUI 即可。
Multi LoRA Loader
在单个节点中管理多个 LoRA。
功能特性
- 每个 LoRA 可单独开关
- 可单独调整每个 LoRA 的权重
- 支持为每个 LoRA 添加备注
- 动态增删 LoRA 条目
使用方法
在工作流中添加 Multi LoRA Loader 节点,连接模型输入,输出用法与标准 LoRA Loader 相同。
语言切换
界面默认显示英文。如需切换中文,打开 multi_lora_loader.js,修改第 4 行:
const LANG = "zh"; // "en" 为英文,"zh" 为中文
Prompt Segments
将多段提示词合并到一个节点中,按顺序输出,支持标签自动补全、直接 CLIP 调节输出,无需手动拼接或额外编码节点。
功能特性
- 动态增删提示词段落
- 每段可单独开关
- 支持为每段添加标签便于管理
- 标签自动补全 — 输入 2 个以上字符自动弹出匹配提示,点击标签即插入;支持键盘 ↑↓←→ 导航 + Tab 补全
- 插入位置控制 — 可指定
prompts_in的接入位置(第 1 段前、第 2 段前等) - 直接 CLIP 输出 — 可选 CLIP 输入输出,绕过独立文本编码器,直连 KSampler
- 按顺序合并所有启用的段落后输出
使用方法
添加 Prompt Segments 节点,将 prompts_out 连接到 CLIP 文本编码器(或任意文本输入),或连接 CLIP 模型后直接用 conditioning 输出接入 KSampler。
语言切换
界面默认显示英文。如需切换中文,打开 prompt_segments.js,修改第 4 行:
const LANG = "zh"; // "en" 为英文,"zh" 为中文
Resolution Switcher
快速在预设的分辨率之间进行切换,解决原版在切换画幅时需要反复手动输入数值的问题。该节点直接输出对应尺寸的空 Latent(潜空间)。
功能特性
- 提前预设多组常用分辨率组合(包含宽度 W、高度 H 及 批处理 数量)
- 通过开关一键快速切换当前生效的分辨率
- 支持动态添加或删除分辨率预设(点击
+ Add Resolution增加,点击X删除) - 告别在测试不同横竖屏比例时频繁修改分辨率的繁琐操作
使用方法
在工作流中添加 Resolution Switcher 节点,输入你常用的几种分辨率组合,开启你需要使用的那一行,然后将 Latent 输出连接到 KSampler(K采样器)或其他接受 Latent 输入的节点即可。
语言切换
界面默认显示英文。如需切换中文,打开 resolution_switcher.js,修改第 4 行:
const LANG = "zh"; // "en" 为英文,"zh" 为中文


