β Big Float Switch
Pick one of ten floats on the fly
- selected
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 -
previousornext. - 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.
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| select | INT | 00β9 | β |
| on_missing | COMBO | 2 options: previous, next | |
| input_0opt | FLOAT | 9223372036854775808.00 | β |
| input_1opt | FLOAT | 9223372036854775808.00 | β |
| input_2opt | FLOAT | 9223372036854775808.00 | β |
| input_3opt | FLOAT | 9223372036854775808.00 | β |
| input_4opt | FLOAT | 9223372036854775808.00 | β |
| input_5opt | FLOAT | 9223372036854775808.00 | β |
| input_6opt | FLOAT | 9223372036854775808.00 | β |
| input_7opt | FLOAT | 9223372036854775808.00 | β |
| input_8opt | FLOAT | 9223372036854775808.00 | β |
| input_9opt | FLOAT | 9223372036854775808.00 | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| selected | FLOAT | β |