Nodes/ComfyUI-cluster/Preview Text Merge
ComfyUI Node

Preview Text Merge

One preview node instead of eight

By GeekatplayStudio·Created 7 months ago·Updated 7 months ago· 24
Preview Text Merge
    • combined
    • text1
    • text2
    • text3
    • text4
    • text5
    • text6
    • text7
    • text8
    count4
    separator\n
    emit_outputsfalse
    text1
    text2
    text3
    text4
    text5
    text6
    text7
    text8

    Preview Text Merge is a tidy little QoL node from the ComfyUI-cluster pack that exists for one reason: the pack's workflows dump a lot of text at you, and nobody wants eight separate PreviewText nodes cluttering the graph. This one gathers up to eight text inputs, joins them into one combined string, shows you a numbered preview, and optionally passes everything through.

    It's category "Ollama/Debug", but like the pack's LiveStatus node, it never talks to Ollama. It's a text aggregator, full stop. If all you need is a single node to eyeball what your planner produced - positive prompt, negative prompt, checkpoint, LoRA list, sampler choice - this is the tool.

    How it works

    You wire up to eight text inputs (text1 through text8). A count field decides how many of them are actually active - set it to 4 and only the first four are merged, the rest are ignored. The inputs are joined with a separator string and displayed in the UI as numbered lines, so you can see at a glance which value came from where.

    The one input that trips people up is emit_outputs. It defaults to false, which means the node is preview only - the combined and text1..text8 outputs come out as empty strings. Flip it to true and the node actually emits the merged string plus every individual input on its own output, so you can wire them further down the graph. If you've wired outputs to something and nothing arrives, this is why: emit_outputs is off.

    The inputs that matter

    • count (1–8, default 4) - how many of the eight text slots are live. Fewer than 8 and you don't have to leave junk in unused slots.
    • separator (default \n) - what goes between inputs in the combined string. Note the default is the two-character escape sequence backslash-n, not an actual line break; if you want literal newlines in downstream text processing, type a real newline here.
    • emit_outputs (default false) - flip to true to make the outputs real instead of empty.
    • text1..text8 - the actual text values, wired from anywhere in your graph.

    How to install it

    It ships in the GeekatplayStudio/ComfyUI-cluster pack. Install via ComfyUI Manager by searching "ComfyUI-cluster", or manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/GeekatplayStudio/ComfyUI-cluster
    

    Restart ComfyUI after. The pack has no Python dependencies of its own, and this node needs nothing beyond base ComfyUI.

    Troubleshooting

    The output-does-nothing issue above is the only real trap, and it's emit_outputs every time. Also check count if inputs seem to be silently dropped - a text5 you're sure you wired might just be beyond the active count. And if the preview shows \n as literal text rather than a line break, that's the escaped separator default doing its thing; either live with it or replace it with an actual newline.

    CategoryOllama/Debug

    Inputs (11)

    NameTypeDefaultDescription
    countINT41–8
    separatorSTRING\n
    emit_outputsBOOLEANfalse
    text1optSTRING
    text2optSTRING
    text3optSTRING
    text4optSTRING
    text5optSTRING
    text6optSTRING
    text7optSTRING
    text8optSTRING

    Outputs (9)

    NameTypeDescription
    combinedSTRING
    text1STRING
    text2STRING
    text3STRING
    text4STRING
    text5STRING
    text6STRING
    text7STRING
    text8STRING