β Big Int Switch
Swap between up to ten integers mid-render
- selected
Big Int Switch [Dream] is the integer member of the pack's switch family: ten INT inputs, a select index, and the chosen value comes out as selected. It's the node you use when a parameter should hop between a few discrete whole numbers depending on where you are in the animation - think "zoom steps of 5, 10, 20" or "switch the seed bucket every N frames".
How it works
Identical skeleton to its siblings. You connect values into input_0 through input_9, pick an index with select, and that value is output. Because int slots have a sentinel placeholder for "not connected", the on_missing setting matters: set to previous and a selected-but-empty slot walks backward to the nearest connected input; set to next and it walks forward. Unconnected int slots read as a huge sentinel value, which the fallback logic filters out before it reaches you.
The inputs that matter
- select - INT, 0β9. The slot to output.
- on_missing -
previousornextfallback. - input_0 β¦ input_9 - the candidate integers.
Where it fits
Int switches are great for batch/size routing and for discrete state changes in an animation: select a resolution tier, a step count, or a seed value based on a frame counter. Pair select with the pack's Boolean To Int for a clean two-state toggle, or with a Calculation [Dream] result for something derived. Since ints are free to evaluate, this is one of the switches where the eager evaluation caveat basically doesn't cost you anything.
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 recurring switch gotchas apply: select is 0-indexed, so your first connected input is input_0 and index 1 is input_1 - people habitually connect to input_1 and select 1 and are confused why the first slot is skipped. And if you leave on_missing at the default and your select points at an empty slot, you get the nearest connected value rather than an error, which is usually what you want but can mask a wrong index. Set your indices deliberately and it just works.
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| select | INT | 00β9 | β |
| on_missing | COMBO | 2 options: previous, next | |
| input_0opt | INT | 9223372036854776000 | β |
| input_1opt | INT | 9223372036854776000 | β |
| input_2opt | INT | 9223372036854776000 | β |
| input_3opt | INT | 9223372036854776000 | β |
| input_4opt | INT | 9223372036854776000 | β |
| input_5opt | INT | 9223372036854776000 | β |
| input_6opt | INT | 9223372036854776000 | β |
| input_7opt | INT | 9223372036854776000 | β |
| input_8opt | INT | 9223372036854776000 | β |
| input_9opt | INT | 9223372036854776000 | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| selected | INT | β |