Indices to List
Turn '0, 1, 5, 10' into a real list so IO Slice & Dice can eat it
- indices
A one-field node with a single job: take a text string of integers - 0, 1, 5, 10 - and hand back an actual parsed list that Eclipse's IO Slice & Dice node can use to pick images out of a batch. That's it. It exists because ComfyUI's canvas has no clean way to type a list literal, so text ends up standing in for data, and some node downstream needs the real thing.
Why this node exists
Slice & Dice (the batch-slicing node in the same pack) expects a LIST type on its indices input. You can't type [0, 1, 5, 10] into a widget and have it arrive as structured data - a text field gives you a string. Indices to List bridges that gap: you paste your indices, it parses them, and the output wire carries a proper integer list. This is exactly the kind of plumbing that makes a larger workflow work - the invisible conversion layer between "what's easy to type" and "what the next node wants."
How it works
The single indices input accepts comma- or newline-separated integers. Newlines are collapsed into commas and everything is split, stripped, and converted with int(). It's forgiving about whitespace - 0, 1, 5, 10 and 0,1,5,10 both work, and you can paste a multi-line list. One behavior worth knowing: if a value can't be parsed as an integer, the node silently drops it and logs a warning rather than crashing the workflow. So 0, 1, banana, 5 becomes [0, 1, 5] and you get a console note telling you banana was ignored. That's friendlier than an error, but it also means a typo'd index just quietly vanishes - worth a glance at the console if your selection looks short.
The default text, 0, 1, 5, 10, is also a decent hint about the intended use: picking a handful of specific frames or images out of a larger set.
Inputs and output
indices- the text string. The only input.indices(output) - aLISTof integers, wired straight into IO Slice & Dice's indices socket. Nothing else comes out.
Install
Part of the ComfyUI_Eclipse pack - install once, use everywhere:
cd ComfyUI/custom_nodes
git clone https://github.com/r-vage/ComfyUI_Eclipse
Or find ComfyUI_Eclipse in ComfyUI Manager and restart. It's pure Python with zero extra dependencies beyond what the pack already declares. If you're using it, you almost certainly have IO Slice & Dice already on the canvas; this node is the text-to-data front end for it. Keep it simple: paste indices, wire the list, done.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| indices | STRING | 0, 1, 5, 10 | Integer indices separated by commas or newlines, for example: 0, 1, 5, 10. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| indices | LIST | Parsed integer indices for IO Slice & Dice. |