Get Int From List | Deforum
Grab one int out of a list, by index
- INT
The integer twin of Get Float From List: it pulls a single INT out of an integer list at a given index. list[index], typed for the list-of-seeds crowd.
Seeds are the obvious use - an animation wants a different seed per frame, and the clean way to manage that is a seed list, not a hundred hardcoded nodes. Wire the list in, feed an index that increments with the Deforum loop's frame counter, and each iteration gets its own seed. The same pattern covers frame-skip counts, per-frame steps values, or any integer sequence you want to replay in order.
Inputs and output
list- anINTlist, fromMake List,Integer List Generator,Accumulation to List(ints only), or any pack that emits one.index-INT, default 0, range 0–100000, zero-based.- Output:
INT- the value at that position.
Gotchas
Same two as the float version: an out-of-range index is a hard IndexError that kills the run, so guard derived indexes against the list length; and zero-based indexing means "first item" is index 0. If you feed the loop's remaining value in as the index by mistake, you'll read the list from the back - and right off the end when the countdown gets below the list size. Wire an incrementing counter, not the countdown.
Also note the type discipline: this node wants an integer list, so an Accumulation of floats won't connect. Keep lists homogeneous and pick the matching Get … From List variant.
Installing it
Part of deforum-comfy-nodes, the official Deforum ComfyUI pack. ComfyUI Manager: search "deforum" (comfyui-deforum), install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/deforum-art/deforum-comfy-nodes
Restart ComfyUI after. No extra dependencies or model files. Load errors after an upgrade usually trace to an orphaned deforum pip package; pip uninstall deforum and restart clears it.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| list | INT | — | |
| index | INT | 00–100000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |