Nodes/ComfyUI_Mira/1 Float from List
ComfyUI Node

1 Float from List

Pull one value out

By mirabarukaso·Created 2 years ago·Updated 5 days ago· 206
1 Float from List
  • float_list
  • float
Start_At_Index0

1 Float from List does the obvious counterpart to 8 Floats: it takes a FLOAT_LIST and hands you back a single float at the index you choose. When you've bundled a set of numbers onto one wire and you only need one of them at a particular spot in the graph, this is the tap.

It's a Numeral node in ComfyUI_Mira, mirabarukaso's utility pack, and it's half of a pack-wide pattern: bundle your values with a packer (8 Floats), carry them on one tidy link, and unpack just what you need where it's consumed. The single-output version is for when one value is all you want at that junction - say, feeding one LoRA strength or one blur amount pulled out of a shared set.

How it works

You give it a list and a Start_At_Index, and it returns the float sitting at that index. No math, no interpolation - it's a straight lookup. Index 0 is the first element of the list (which is float_1 if the list came from 8 Floats).

The reason a lookup node earns its place is the same one that justifies the packer: on a large graph, a single FLOAT_LIST wire crossing the canvas is far easier to read than eight parallel float links, and this node is how you cash that bundle back into a usable number exactly where it's needed. Change a value once in the upstream 8 Floats and every tap reading from the list updates - one source of truth for a whole set of numbers.

Inputs and outputs that matter

  • float_list - the FLOAT_LIST to read from, typically from 8 Floats.
  • Start_At_Index - which element to return. Zero-based.

The output is a single float (FLOAT) you can wire into any numeric input: a sampler setting, a strength, a scale factor, a blur.

Installing it

ComfyUI Manager: search ComfyUI_Mira in the Custom Nodes Manager, Install, restart. Manual: cd ComfyUI/custom_nodes && git clone https://github.com/mirabarukaso/ComfyUI_Mira.git, then restart ComfyUI. If it errors on load, pip install -r requirements.txt in the pack folder and restart. No models needed.

Common issues

The one real failure mode is an index past the end of the list - ask for element 8 of an 8-element list (indices 0-7) and there's nothing there. Keep Start_At_Index inside the list length.

The other thing to watch is the zero-based indexing against 8 Floats' one-based labels: float_1 in the packer is index 0 here, so if a value comes out one slot off, that's your offset. If you need several contiguous values at once, the 8-output Float List Interpreter saves you from stacking multiple copies of this node. But when you genuinely need just one number out of a bundle, this is the smallest, clearest way to get it.

CategoryMira/Numeral

Inputs (2)

NameTypeDefaultDescription
float_listFLOAT_LIST
Start_At_IndexINT0

Outputs (1)

NameTypeDescription
floatFLOAT