create_any_batch
Building a LIST from a variable number of inputs
- LIST
This is one of a handful of nodes in Apt_Preset that show up with a completely empty schema - no required fields, no optional fields, just an output. That's not a documentation gap; it's a real pattern in ComfyUI for nodes with variable, user-controlled input counts.
What it is and why you'd reach for it
create_any_batch lives in ComfyUI-Apt_Preset's data utilities. The declared schema has zero static inputs and a single LIST output - which is the signature of a node built around a dynamic "+" control in its own UI rather than fixed input sockets defined in Python. In plain terms: instead of a node hard-coded with, say, five input slots whether you need them or not, you add exactly as many inputs as you actually have, right in the node's corner, and it batches whatever you connect into a single LIST. This is standard practice across the ComfyUI ecosystem for combine/batch-style nodes - you'll recognize the pattern from similar "batch" or "combine" nodes in other packs.
Where you'd reach for it: any time you're assembling a variable-length collection of items - a handful of values you want treated as one iterable unit for a downstream loop or list-consuming node - and you don't want to commit to a fixed input count up front.
How it works
Because the node ships with no fixed inputs declared, the mechanism is entirely UI-driven: open the node in the ComfyUI graph and look for the add-input control (typically a small "+" on the node itself). Each input you add becomes one more slot to wire something into, and everything connected gets folded into the single LIST output in the order you added them.
Inputs and outputs that matter
The static schema is empty - no required or optional fields are declared for this node. The one thing that is documented is the output:
LIST- the batched collection of whatever you wired in, ready for anything downstream that iterates or consumes a list.
Since no input names are part of the fixed schema, the honest answer here is: add inputs via the node's own UI and wire in whatever you need batched together - there's nothing to name in advance.
Installing it
Through ComfyUI Manager: search ComfyUI-Apt_Preset, install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/cardenluo/ComfyUI-Apt_Preset.git
Run install.bat on Windows for dependencies; on Linux/Mac install the requirements yourself, since no equivalent script is bundled. No model downloads needed - this is pure data plumbing.
Common issues
If you can't find where to add an input, that's the first thing to check before assuming the node is broken - look for a small control on the node body itself (usually near a corner) rather than expecting input sockets to already be present when you drop it into the graph. Nodes built this way genuinely start with nothing to wire until you add a slot.
Beyond that, since the output type is a generic LIST, make sure whatever you're feeding downstream actually expects a list rather than a single item of that type - a common mismatch when swapping a fixed-input node for a dynamic batcher like this one mid-workflow.
As with the rest of ComfyUI-Apt_Preset: it's a large, actively-updated pack, and at least one user has reported an IMPORT FAILED error at ComfyUI startup after installing it. Check the console log if this node doesn't show up after install.
Inputs (0)
No inputs
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LIST | LIST | — |