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

Set Accumulator (texts)

Collect scattered text into one block, by name

By Kinburg·Created 3 months ago·Updated 6 days ago· 1
Set Accumulator (texts)
    • text
    text
    nameTEXTS
    index0

    The text sibling of the pack's image accumulators. When several branches each produce a string - a caption, a note, a per-branch description - and you want all of them joined into one block in a defined order, Set Accumulator (texts) tags each string with a name and index, and a matching Get Accumulator (texts) later joins them all with a separator. Same pattern as the images version, different payload: you're collecting strings, not pixels.

    How it works

    The Set node is a pass-through: text in, text out, unchanged. The label is everything. Give it a name (default TEXTS), and an index that auto-increments when you copy the node. A Get Accumulator (texts) with the same name has a Collect button that wires every matching Set's output into it in index order, then joins them with a separator - reusing the pack's Unlim Text Concat, so multi-line separators are fine and skip_empty drops bypassed branches to keep the block clean. All real links on the frontend, no hidden state.

    Inputs and output

    • text - the string to contribute. Passes through unchanged.
    • name - the accumulator name; must match the Get node's name exactly.
    • index - position in the joined output, 0–9999, auto-incremented on copy.

    The text output is your pass-through so the node can sit inline without breaking the flow.

    Install

    Part of the Kinburg-Nodes pack: ComfyUI Manager (search "Kinburg-Nodes") or git clone https://github.com/Kinburg/Kinburg-Nodes into custom_nodes, then restart. No extra dependencies.

    The gotcha

    The name match is the whole contract - mismatch the Set and Get names and you silently collect nothing. And because this pair joins with a configurable separator, it's the "generic" text accumulator: if your target is an Image Compare node, the pack's prompts and captions pairs exist precisely because they hardcode the separator that compare expects, so the two ends can't drift. For anything compare-shaped, prefer those. For everything else - assembling a report, joining notes, building a block of text from branches - this is the one.

    CategoryKinburg-Nodes/flow/accumulators

    Inputs (3)

    NameTypeDefaultDescription
    textSTRING
    nameSTRINGTEXTSAccumulator name. A Get Accumulator (texts) with the same name collects every Set that shares it.
    indexINT00–9999Position in the joined output. Auto-increments when you copy the node.

    Outputs (1)

    NameTypeDescription
    textSTRING