Nodes/comfyUI-tool-2lab/string hub 文本集中输入框
ComfyUI Node

string hub 文本集中输入框

Nine prompts in one box

By AI2lab·Created 2 years ago·Updated 2 years ago· 23
string hub 文本集中输入框
    • string1
    • string2
    • string3
    • string4
    • string5
    • string6
    • string7
    • string8
    • string9
    string1
    string2
    string3
    string4
    string5
    string6
    string7
    string8
    string9
    base_string
    separator,
    concatNone

    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

    • string1string9 - 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 between base_string and the individual strings when joining (default is a comma).
    • concat - the join mode: Before (prepend base_string), After (append it), or None (off by default). With None, the nine strings pass through untouched and base_string/separator do 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

    • concat defaults to None. Most people assume the hub concatenates by default and get confused when nothing joins. It only joins when you explicitly pick Before or After.
    • 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.
    Category🦊2lab/util/loader

    Inputs (12)

    NameTypeDefaultDescription
    string1STRING
    string2STRING
    string3STRING
    string4STRING
    string5STRING
    string6STRING
    string7STRING
    string8STRING
    string9STRING
    base_stringSTRING
    separatorSTRING,
    concatCOMBONone3 options: Before, After, None

    Outputs (9)

    NameTypeDescription
    string1STRING
    string2STRING
    string3STRING
    string4STRING
    string5STRING
    string6STRING
    string7STRING
    string8STRING
    string9STRING