Nodes/Dream Project Animation Nodes/β­† Big Float Switch
ComfyUI Node

β­† Big Float Switch

Pick one of ten floats on the fly

By alt-key-projectΒ·Created 3 years agoΒ·Updated 2 years agoΒ· 114
β­† Big Float Switch
    • selected
    β—„select0β–Ί
    β—„on_missingβ–Ύβ–Ί
    β—„input_09223372036854775808.00β–Ί
    β—„input_19223372036854775808.00β–Ί
    β—„input_29223372036854775808.00β–Ί
    β—„input_39223372036854775808.00β–Ί
    β—„input_49223372036854775808.00β–Ί
    β—„input_59223372036854775808.00β–Ί
    β—„input_69223372036854775808.00β–Ί
    β—„input_79223372036854775808.00β–Ί
    β—„input_89223372036854775808.00β–Ί
    β—„input_99223372036854775808.00β–Ί

    Big Float Switch [Dream] is the float-flavored member of the pack's ten-input switch family. Connect up to ten FLOAT values, set a select index, and the chosen one comes out as selected. It's the natural tool for animating a float parameter through discrete stages - a zoom rate that steps between 0.01, 0.05, and 0.1 depending on which section of the animation you're in.

    How it works

    Same skeleton as every Big switch in the pack. Values go into input_0 through input_9, select chooses the index, on_missing decides the fallback when the selected slot is empty - previous walks backward to the nearest connected input, next walks forward. Float slots have a sentinel value for "unconnected", and the node filters that out before outputting, so you never accidentally get a garbage number.

    The inputs that matter

    • select - INT, 0–9.
    • on_missing - previous or next.
    • input_0 … input_9 - the candidate floats.

    Where it fits

    Floats are the currency of this pack's animation parameters, so this switch pairs beautifully with the frame counter and curves: pick a motion strength, a weight, or a color factor per section. Drive select from a frame counter and the animation steps through the values automatically. Since floats are cheap to produce, the eager-evaluation caveat costs you nothing here.

    Installing it

    Ships with Dream Project Animation Nodes - ComfyUI Manager (search Dream Project Animation) or clone https://github.com/alt-key-project/comfyui-dream-project into custom_nodes, pip install -r requirements.txt, restart. No model downloads.

    Common issues

    The usual switch family gotchas: 0-indexing (input_0 is the first slot, so select 0 to get it), and trusting on_missing to silently fix a wrong index. It'll happily give you the "nearest" value when you meant an exact slot, which hides mistakes. Other than that, there's very little to trip on - it's a selector with ten pockets and a number pad.

    Category✨ Dream/πŸ›  utils/β­† switches

    Inputs (12)

    NameTypeDefaultDescription
    selectINT00–9β€”
    on_missingCOMBO2 options: previous, next
    input_0optFLOAT9223372036854775808.00β€”
    input_1optFLOAT9223372036854775808.00β€”
    input_2optFLOAT9223372036854775808.00β€”
    input_3optFLOAT9223372036854775808.00β€”
    input_4optFLOAT9223372036854775808.00β€”
    input_5optFLOAT9223372036854775808.00β€”
    input_6optFLOAT9223372036854775808.00β€”
    input_7optFLOAT9223372036854775808.00β€”
    input_8optFLOAT9223372036854775808.00β€”
    input_9optFLOAT9223372036854775808.00β€”

    Outputs (1)

    NameTypeDescription
    selectedFLOATβ€”