Nodes/Pseudocomfy/Concat Strings
ComfyUI Node

Concat Strings

The two-input text joiner that stops you hand-typing

By Pseudotools·Created 2 years ago·Updated 20 days ago· 4
Concat Strings
    • str
    str_a
    str_b
    separator

    Concat Strings is a two-in, one-out text joiner, and it's exactly as simple as it sounds - which is why it's worth a minute, because it plugs a genuinely annoying hole in Pseudocomfy's snapshot workflow.

    ComfyUI's own text nodes are oddly stingy here. You get a text box per node, but when your graph is built around lists of prompts - the material prompt lists that flow out of PseudoUnpackModelSnapshot and PseudoProcessMaterialPrompts - you frequently need to glue two strings together mid-graph and feed the result onward. That's this node's whole job: str_a plus str_b, joined with a separator you pick from a dropdown (space, comma, or semicolon), spat out as a single str.

    The three inputs, the one output

    • str_a, str_b - the two strings. Both are forceInput, so they arrive by wire, not by widget. That's the point: you can chain the output of a snapshot unpacker or a PseudoPreviewStrings into these.
    • separator - space (" "), comma (", "), or semicolon ("; "). The semicolon choice is the quiet tell that this node was built for the Pseudocomfy prompt convention, where scene, style, and material prompts get joined with "; " before encoding.
    • Output: str, one STRING. Wire it into any downstream text input or another concat.

    Nothing gets encoded, nothing gets cached, there's no model involved. It's a passthrough with a seam.

    Where you'd actually use it

    Two spots make this node earn its keep. First, building an aggregated prompt on the fly: take env_scene and env_style from the environment prompts, join with a comma, and you have a combined positive you can preview before it hits the sampler. Second, composing material prompt text: glue a material name to a shared style suffix once, then hand it to a conditioning node, instead of editing the same suffix into five different strings by hand.

    It's not the fanciest node in the pack and it won't do anything a ; in a text widget can't. But once your prompts live in wires instead of boxes - which is the whole architecture of this pack - a small dedicated joiner is the difference between a clean graph and a tangle of hardcoded strings you can't regenerate. If you're already on Pseudocomfy, add it to the toolbar and move on. Install is the pack-wide one-liner: git clone https://github.com/Pseudotools/Pseudocomfy into custom_nodes, then restart ComfyUI (or grab it from Manager under "Pseudocomfy").

    CategoryPseudocomfy/Utils

    Inputs (3)

    NameTypeDefaultDescription
    str_aSTRING
    str_bSTRING
    separatorCOMBO3 options: space, comma, semicolon

    Outputs (1)

    NameTypeDescription
    strSTRING