GALIAIS-Nodes Prompt Section
The toggleable prompt building block that makes A/B tests painless
- 提示词段
- 文本
- 元信息JSON
The Prompt Section is the pack's answer to "I want to turn one part of my prompt off without deleting it." It wraps a chunk of prompt text in a named, toggleable, weightable box. The killer feature is the 启用 (enabled) checkbox: flip it and the whole section vanishes from the output. That's it - no editing the text in and out of a giant string, no rerouting wires. Just click and compare.
The inputs
名称- a label for the section. It's metadata, not part of the prompt text; name it "outfit" or "lighting" so you can tell sections apart at a glance.内容- the actual tags or text. Multiline.启用- the on/off switch. Off means the section outputs empty.权重- default 1. When you move it off 1, every tag in the section gets wrapped in(tag:weight). Same caveat as the rest of the pack: that syntax matters on SDXL-lineage anime models and gets dropped by LLM-encoded ones, so treat weight as an SDXL/Illustrious/NoobAI feature.前缀/后缀- optional strings glued around the content, handy for wrapping a section in(group:1.2)or appending a fixed keyword. Everything gets joined and de-duplicated.
The outputs
Three of them: 提示词段 (a typed GALIAIS_NODES_PROMPT_SECTION object that other GALIAIS nodes can consume), 文本 (the plain string - this is what you actually wire into a composer or straight to CLIP text encode), and 元信息JSON (a peek at what the section resolved to: name, text, enabled state, weight).
Why you'd actually use it
This is a workflow-composition node, and its value is in the workflow. Stack a few sections - one for the character, one for the outfit, one for the scene - wire all their 文本 outputs into a combine node, and you can toggle each layer independently. Want to test whether the character survives without the outfit block? Click the outfit section's 启用 off and re-run. No undo, no clipboard juggling. It also keeps prompts legible in a way a single monster text box never is, which is half the point of the whole pack.
Installing
Same as every node here:
cd ComfyUI/custom_nodes
git clone https://github.com/GALIAIS/GALIAIS-Nodes.git
Restart ComfyUI. Zero dependencies, no DB needed - the section node is pure string assembly. One small warning if you're an English speaker: the field labels are Chinese (名称 is "name", 内容 is "content", 前缀/后缀 are prefix/suffix). Takes about a minute to memorize, but it's the first thing that throws people off this pack.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| 名称 | STRING | — | |
| 内容 | STRING | — | |
| 启用 | BOOLEAN | true | — |
| 权重 | FLOAT | 1.000–5 | — |
| 前缀opt | STRING | — | |
| 后缀opt | STRING | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| 提示词段 | GALIAIS_NODES_PROMPT_SECTION | — |
| 文本 | STRING | — |
| 元信息JSON | STRING | — |