Repeat List
Stretch a list to fill a batch
- In
- Extended
Repeat List takes a list and repeats it, whole, Count times. That's the entire job. Feed it ["a", "b", "c"] with Count = 3 and out comes ["a", "b", "c", "a", "b", "c", "a", "b", "c"] - the full list repeated back to back, not each element multiplied in place. If you wanted ["a","a","a","b","b","b","c","c","c"], that's a different shape, and this isn't the node for it.
Why would you want that? It's a length-matching tool. ComfyUI's list support means lists get zipped up against each other in a batch, and when two lists don't line up, the pairing gets lopsided or the graph errors. If you've got a short list - three styles, say - and you're working against a long one - fifteen seeds - repeating the short list five times gives you fifteen entries with each style cycling through all five seeds. It's the manual, transparent version of what a Cartesian product does for you in one shot; XYAny gives you the automatic version, Repeat List gives you the "I want to see exactly how this expands" version.
Two things about the inputs. In accepts anything, and the output Extended is the same type. Count is an INT from 0 to 99999, and it must be a single value - feed it a list and the node refuses with Count does not support multiple values.
And here's the gotcha that will quietly waste a queue: the default Count is 0. Drag the node in, wire up a list, hit run without touching Count, and you get an empty list - which usually means the downstream batch silently produces nothing. It's not broken, it's just not set. Type a number.
It's a thin node, and that's fine. In the pack's usual habitat - range generators feeding lists into XY workflows - Repeat List is the utility you grab when your axes aren't the same length and you'd rather fix it in data than rebuild the graph. It pairs naturally with List Length to confirm your math before you run.
Install is the same for every node in Comfy_KepListStuff, and there's nothing heavy about it - no requirements.txt, no model downloads, just the clone and a restart:
cd ComfyUI/custom_nodes
git clone https://github.com/M1kep/Comfy_KepListStuff
Or search Comfy_KepListStuff in ComfyUI Manager. It's under List Stuff. Set your Count, double-check it isn't zero, and let the list stretch.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| In | * | — | |
| Count | INT | 00–99999 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| Extended | * | — |