ComfyUI Node

array_Merge

Concatenate several arrays into one, in wire order

By cardenluo·Created 2 years ago·Updated a day ago· 324
array_Merge
    • array

    array_Merge does one thing and does it simply: it takes however many arrays you feed it and returns a single array containing all their elements, in the order you wired the inputs. If you've got a base list of prompts and an extra list you want appended, or two batches of frames you want treated as one, this is the node. It's the "join" utility of the pack's array family - no cleverness, no deduplication, just first + second + … in port order.

    How it works

    There are no required inputs - you just keep wiring value ports (the node collects anything with a value-prefixed key) and it concatenates them: each connected array's elements are appended onto the result. The order is determined by the port numbering, so wire the arrays in the order you want them to appear in the output. It returns a single array (LIST type), one wire carrying the merged Python list.

    Because it's a flat concatenation, the inputs should each be an array (a LIST object). Feed it non-array single values and you'll get unexpected nesting rather than an error - the pack's type conventions expect you to have already wrapped loose values with create_array or collected them via flow_stage_list. If you want to slice the merged result afterward, array_Slice is the natural next stop; if you want to convert the merged container to a true list, type_ArrayToList.

    Where you'd use it

    The classic case: you're building a prompt library or a list of reference images and you want to append a fixed tail to a dynamic head - merge the dynamic array with the constant one and feed the result to a per-item consumer. It's also handy in the staged flow pipelines for joining two stages' worth of collected values into one array before handing it to flow_stage_list or a batch node.

    Install

    It's part of ComfyUI-Apt_Preset: install via ComfyUI Manager (search "ComfyUI-Apt_Preset") or clone the repo into custom_nodes, run install.bat, restart. No models, no special deps. The one gotcha: because the input ports are dynamic and typed LIST, make sure you're merging arrays, not raw values - a merge of two bare strings will quietly produce a list of two one-element chunks rather than a clean flat array.

    CategoryApt_Preset/data/list|Array

    Inputs (0)

    No inputs

    Outputs (1)

    NameTypeDescription
    arrayLIST