string hub 文本集中输入框
Nine prompts in one box
- string1
- string2
- string3
- string4
- string5
- string6
- string7
- string8
- string9
Large workflows die of clutter - nine text nodes scattered across the canvas, each with a prompt buried in its widget, none of them findable. StringHub9 (2lab) is the answer: one node with nine multiline text fields that all feed different parts of your graph. The Chinese subtitle says it plainly: 文本集中输入框, the "centralized text input box." It's a control panel for all the strings your workflow needs, in a single place.
This is the classic "hub" pattern that power packs like rgthree popularized - centralize the stuff you edit every run so you don't hunt through the graph. Here the inputs are intentionally generic: string1 through string9, each a multiline box, each with its own output. Prompt, negative prompt, seed comment, style tag, output filename - put all of them here and your canvas gets dramatically quieter.
Inputs that matter
string1…string9- nine multiline text fields, each output individually. The core of the node.base_string- a shared string you can join onto the others.separator- what goes betweenbase_stringand the individual strings when joining (default is a comma).concat- the join mode:Before(prepend base_string),After(append it), orNone(off by default). WithNone, the nine strings pass through untouched andbase_string/separatordo nothing.
Outputs
Nine STRING outputs, string1 through string9, mirroring the inputs. Wire each to wherever that string is consumed - usually a CLIP text encoder or a node that needs a label.
How it works
At heart it's a routing node: nine strings in, nine strings out, no transformation unless you turn on concat. When you do, the shared base_string gets joined to each string with the separator - handy for stamping a common suffix or prefix onto every prompt in one move, like appending a style tag to all nine inputs. That's a small but real workflow shortcut: one edit to base_string updates every branch.
Installing it
Same install as the rest of the pack. ComfyUI Manager → search "comfyUI-tool-2lab" → install, or:
cd ComfyUI/custom_nodes
git clone https://github.com/AI2lab/comfyUI-tool-2lab
Restart ComfyUI. Pure Python, no models.
Gotchas
concatdefaults toNone. Most people assume the hub concatenates by default and get confused when nothing joins. It only joins when you explicitly pickBeforeorAfter.- Empty strings still occupy a slot. You don't have to fill all nine, but an empty one still emits an empty string - fine unless whatever's downstream chokes on empties.
- Repo visibility. The pack's GitHub page currently returns 404, likely because the author made it private or moved it. Fresh installs can fail while existing ones keep working - don't blame your steps.
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| string1 | STRING | — | |
| string2 | STRING | — | |
| string3 | STRING | — | |
| string4 | STRING | — | |
| string5 | STRING | — | |
| string6 | STRING | — | |
| string7 | STRING | — | |
| string8 | STRING | — | |
| string9 | STRING | — | |
| base_string | STRING | — | |
| separator | STRING | , | — |
| concat | COMBO | None | 3 options: Before, After, None |
Outputs (9)
| Name | Type | Description |
|---|---|---|
| string1 | STRING | — |
| string2 | STRING | — |
| string3 | STRING | — |
| string4 | STRING | — |
| string5 | STRING | — |
| string6 | STRING | — |
| string7 | STRING | — |
| string8 | STRING | — |
| string9 | STRING | — |