Nodes/IG Interpolation Nodes/πŸ“ƒ IG Float List
ComfyUI Node

πŸ“ƒ IG Float List

Turn a typed-out list of numbers into a per-frame value picker

By IDGallagherΒ·Created 3 years agoΒ·Updated about a year agoΒ· 3
πŸ“ƒ IG Float List
    • current value
    • list
    • list text
    β—„index1β–Ί
    β—„decimal_places3β–Ί
    β—„float_listβ€”β–Ί

    IG Float List is the pack's answer to "I have a list of numbers and I want to pick one by position." You paste a list into a multiline box, set an index, and it hands you the value at that position - along with the full parsed list and a formatted text version. It's the natural driver for per-frame sweeps: feed it a strength or alpha per frame index, then step the index through your animation and each frame gets its own value.

    The parsing is genuinely forgiving. It splits the input on commas, semicolons, whitespace, or colons - so 0.1, 0.2, 0.3, 0.1;0.2;0.3, 0.1 0.2 0.3, and 0.1:0.2:0.3 all work. Any token that isn't a valid float raises an error, which is your typo-detector: if you accidentally paste a stray letter, the node fails loudly instead of silently mis-slicing. It also caches the parse: it only re-splits when the source text changes, so repeated runs with the same list are cheap.

    Inputs:

    • float_list - STRING, multiline. The numbers to parse.
    • index - INT, default 1, 1-based position to pick.
    • decimal_places - INT, default 3, controls the precision of the formatted text output.

    Outputs (three, and they're easy to confuse):

    • current value - FLOAT, the single number at index.
    • list - FLOAT, the full parsed list of floats (this is a Python list of floats).
    • list text - STRING_LIST, the same values re-formatted to decimal_places as strings.

    The index is 1-based and clamps rather than errors: if index is beyond the end of the list, it returns the last element, so your workflow doesn't crash mid-sweep - it just holds the final value. That's a quiet behavior worth knowing before you rely on it.

    Install is the pack standard:

    cd ComfyUI/custom_nodes
    git clone https://github.com/IDGallagher/ComfyUI-IG-Nodes
    cd ComfyUI-IG-Nodes && pip install -r requirements.txt
    

    Or ComfyUI Manager β†’ search "IG Interpolation Nodes" β†’ Install, restart. No models, no heavy deps. It shares its category (πŸ“ IG Nodes/Primitives) with IG String List, which does the same trick for text split on newlines - reach for that one when your per-frame values are prompts instead of numbers. The README is :), but the parse rules above are straight from nodes/primitives.py.

    CategoryπŸ“ IG Nodes/Primitives

    Inputs (3)

    NameTypeDefaultDescription
    indexINT11–100β€”
    decimal_placesINT3β€”
    float_listSTRINGβ€”

    Outputs (3)

    NameTypeDescription
    current valueFLOATβ€”
    listFLOATβ€”
    list textSTRING_LISTβ€”