Get Float From List | Deforum
Grab one float out of a list, by index
- FLOAT
In animation, floats travel in lists - a whole camera path or a per-frame strength curve is naturally one list of numbers. But a list is only useful if you can get a single value out of it at the right moment. Get Float From List is the index lookup for float lists: list[index], with a wire on it.
You'll reach for it when a list is driving something that needs one value at a time - pull the strength for frame 50 off a curve and feed it to a sampler, or step through a list of animation values one per loop iteration by feeding an index that increments with the frame counter.
Inputs and output
list- a list ofFLOATvalues. In practice this comes from a list-producing node -Make List,Accumulation to List(if you accumulated floats), or any pack that emits a float list.index-INT, default 0, from 0 up to 100000. Standard zero-based indexing.- Output:
FLOAT- the value at that position.
The sibling Get Int From List | Deforum is identical but for integer lists, so pick the one matching the list's content type - ComfyUI's typing will actually complain if you wire the wrong one.
Gotchas
Out-of-range index = hard IndexError, run dies. If your index is derived from a frame counter, guard it with the list's length (or clamp it) - and remember zero-based indexing means frame 1 is index 0. If you're iterating, this pairs naturally with the Deforum For Loop nodes: the loop gives you an incrementing counter, this node turns it into a value off your list.
One more: the input expects a list that ComfyUI recognizes as a float list, which is usually a node that outputs a list rather than a single float value. If you're feeding it a plain float, you've got the wrong node - that's the * primitive or Get Int From List's sibling for numbers.
Installing it
Ships in 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, no model downloads. Known load-error cause after upgrades: an orphaned deforum pip package; pip uninstall deforum and restart.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| list | FLOAT | — | |
| index | INT | 00–100000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | — |