Nodes/Kinburg-Nodes/Get Accumulator (texts)
ComfyUI Node

Get Accumulator (texts)

Collect branch texts into one joined string

By Kinburg·Created 3 months ago·Updated 6 days ago· 1
Get Accumulator (texts)
    • text
    nameTEXTS
    separator
    skip_emptytrue

    Text is the awkward case in branch-collection: images batch cleanly, but a pile of strings has no natural container, and joining them is the thing you actually want anyway. Get Accumulator (texts) is the read side of the pack's text accumulator - it collects every Set Accumulator (texts) node sharing a name and joins them in index order with a separator you choose.

    Like the other Get nodes, the mechanism is plain links: a Collect button wires each matching Set's output into the node (in index order, skipping bypassed or muted Sets), and the run joins them via the pack's Unlim Text Concat. Nothing global, nothing cached mysteriously - just standard links and a join.

    The inputs that matter:

    • name - the accumulator name; must match the Set Accumulator (texts) nodes. Press Collect to wire.
    • separator - what joins the texts. Multi-line allowed; default is a newline.
    • skip_empty - on by default; skips empty or bypassed branches so they don't leave stray separators.

    The output:

    • text - one STRING with all collected texts joined.

    The generic text pair is the workhorse: any branch that produces a text fragment - a generated prompt, a caption, a note - gets a Set Accumulator (texts) on the way out, and this node gathers them for whatever consumes a single string downstream. If you're feeding an Image Compare node, though, reach for the two specialized twins instead: Get Accumulator (captions) joins with a newline (one caption per line, exactly what the compare node expects) and Get Accumulator (prompts) joins with a --- line (how Image Compare splits multi-line prompts). Their separators are hardcoded precisely so the two ends can't mismatch.

    The realistic use: several branches each write their own prompt or label, and you want all of them in one text output in a stable order - a combined prompt for a file, a batch of notes, or a header block. Set the separator to taste; default newline is right for most things.

    Install via ComfyUI Manager (search "Kinburg-Nodes") or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Kinburg/Kinburg-Nodes
    

    then restart. No dependencies beyond the pack - string joining, nothing heavy. One-author personal collection, per-package docs, 1395 automated checks.

    CategoryKinburg-Nodes/flow/accumulators

    Inputs (3)

    NameTypeDefaultDescription
    nameSTRINGTEXTSAccumulator name to collect — must match the Set Accumulator (texts) nodes. Press 'Collect' to (re)wire after adding/removing Sets.
    separatorSTRING Joins the collected texts in index order. Multi-line allowed; default is a newline.
    skip_emptyBOOLEANtrueSkip empty / bypassed branches so they don't leave stray separators.

    Outputs (1)

    NameTypeDescription
    textSTRING