ComfyUI Node

Text Combiner

The two-string merge that's hiding in a culture pack

By manifestationsΒ·Created about a year agoΒ·Updated about a year agoΒ· 4
Text Combiner
    • combined_text
    β—„text_1β€”β–Ί
    β—„text_2β€”β–Ί

    Sometimes the most useful node in a pack is the boring one. Text Combiner ships inside ComfyUI Globetrotter Nodes (in the Globetrotter/Utils category), and it does exactly one thing: takes two text strings and joins them with a comma. That's it. No separator choice, no fancy formatting - which is refreshing, because ComfyUI's default text handling will make you appreciate a node that just does what it says.

    What it is

    A minimal string utility. You feed it text_1 and text_2, it strips the empty ones, and returns a single combined_text string with the two joined by ", ". It's the kind of node you throw into a prompt-assembly workflow when you're combining a positive prompt from a few sources.

    How it works

    The whole implementation is one function: filter out any input that's blank or whitespace-only, then ", ".join() the rest. If one input is empty, you get the other one back untouched. If both are empty, you get an empty string. Nothing to configure, nothing to break, no dependencies beyond the pack install.

    Where people actually find this useful: pipe the prompt output of an attire node (say, India Attire) into text_1, put a quality/style string in text_2, and feed combined_text into a CLIP Text Encode (Prompt) node. It's also handy for merging a base prompt with a per-batch variation before the encoder. If you're used to wildcard-and-concatenate workflows from other packs, this is the same glue with less ceremony.

    The inputs and output

    • text_1 (STRING) - first prompt fragment.
    • text_2 (STRING) - second prompt fragment.
    • combined_text (STRING) - the two joined with a comma and space.

    Install

    cd /path/to/ComfyUI/custom_nodes
    git clone https://github.com/manifestations/comfyui-globetrotter
    

    Restart ComfyUI, or search "Globetrotter" in ComfyUI Manager. It'll show up under "🌐 Globetrotter/Utils." No extra dependencies, no model downloads - it's pure Python.

    Troubleshooting

    • Nothing comes out: both inputs were empty or whitespace. That's the designed behavior - it skips blanks rather than emitting a stray comma.
    • You need a separator other than a comma: this node doesn't offer one. It's a deliberate simplicity; if you need custom joiners, use one of the many string-concat utilities in bigger packs.
    • Text order: text_1 always comes first in the output, regardless of which is longer.

    It won't win any awards for ambition, but when you need two strings merged cleanly in the middle of a graph, this is the node you'll quietly reach for - and it ships free with the rest of the pack.

    Category🌐 Globetrotter/Utils

    Inputs (2)

    NameTypeDefaultDescription
    text_1STRINGβ€”
    text_2STRINGβ€”

    Outputs (1)

    NameTypeDescription
    combined_textSTRINGβ€”