ComfyUI Node

String (RE)

A labeled bit of text you can wire to more than one place

By an90ray·Created 3 years ago·Updated 2 years ago· 0
String (RE)
    • string
    string

    Same idea as this pack's Int (RE), just for text: one string in, the same string out. No formatting, no concatenation, no find-and-replace - this is a label-and-wire node, not a text-processing one.

    The use case is identical to its integer sibling. Any time the same bit of text needs to reach more than one place in a workflow - a filename prefix, a trigger word, a chunk of prompt you reuse across several encoders - typing it once here and wiring the output around beats copy-pasting it into three widgets and forgetting to update all three when you change your mind. Give the node a title that says what the string actually is, and your graph gets more readable for free.

    It's also shaped to match STR1 on this pack's RErouter bus output - a plain string with nowhere else to originate from except a node exactly like this one, sitting upstream of whatever packs values onto the bus in the first place.

    Mechanically it couldn't be simpler: whatever you type into the widget is set directly as the output value on execution, no transformation in between. That simplicity is the whole point - it's a labeled variable, not a text tool.

    The inputs and outputs that matter

    • string - a multiline text widget, empty by default. Whatever you type here is the whole node's job.
    • string (output) - the same text, unmodified, typed STRING so it wires into a prompt box, a filename field, anything expecting plain text.

    How to install it

    Same one-repo install as the rest of the pack. ComfyUI Manager: search ComfyUI_RErouter_CustomNodes. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/an90ray/ComfyUI_RErouter_CustomNodes.git
    

    Restart ComfyUI afterward. No models, no dependencies beyond the clone itself.

    Common issues & troubleshooting

    Expecting it to do something to the text. It doesn't - no trimming, no template substitution, nothing. If you need to build a string out of pieces (combine a style tag with a subject, say), you'll want a proper string-concatenation node from elsewhere in your custom-node set; this one only holds and forwards what you typed.

    Reaching for it outside this pack for no reason. If you're not already running the rest of RErouter, ComfyUI's built-in Primitive node covers the same ground without adding a dependency. This one earns its place specifically when you want your utility nodes to match the rest of an RErouter-based workflow, or when a downloaded workflow already has it wired in.

    Multiline text getting flattened somewhere downstream. That's not this node's doing - it passes the string through exactly as typed, newlines included. If a downstream node collapses your line breaks or truncates the text, that's the receiving node's behavior, not something happening here.

    Category(RE)router

    Inputs (1)

    NameTypeDefaultDescription
    stringSTRING

    Outputs (1)

    NameTypeDescription
    stringSTRING