Any Switch
A 2-way switch that takes literally any type
- input1
- input2
- *
Any Switch [RvTools] is a two-input, one-output switch whose inputs accept anything - model, image, string, conditioning, you name it. Flip the Input selector to 1 or 2 and the matching input flows to the output. That's the entire job, and the "any" part is the whole point.
Why you'd reach for it
ComfyUI is full of type-specific switches - conditioning switches, model switches, image switches - because a switch's sockets have to match the data type. But sometimes you just want to pick between two values of whatever type, and maintaining a separate switch node per type gets silly. This node's input sockets are * (the any-type trick popularized by pythongosssss's AnyType), so one node covers images, latents, strings, INTs, whatever you're shuffling.
Where it shines is group-based workflow design, which is exactly how the pack's author builds graphs: a switch per decision point, bypass the ones you're not using, and the whole graph stays readable. The README's own line on switches: when bypassed, the node sends whatever is connected to input1; when enabled it sends input2. That bypass-first behavior is the real workflow superpower - mute the switch and you get input 1, un-mute and you get input 2, no rewiring.
How it works
Mechanically dead simple: if Input == 1: return input1, else: return input2. The output is any-typed too, so it connects to whatever you wired in. No validation, no fallback - if you select 1 and nothing's connected to input1, the output is None and downstream nodes may complain.
Inputs: Input (1 or 2 selector), input1 and input2 (any type, optional).
Output: * - whatever you selected.
Install
Standard RvTools install:
- ComfyUI Manager → search "RvTools" → install ComfyUI-RvTools_v2 → restart.
- Or:
cd ComfyUI/custom_nodes && git clone https://github.com/r-vage/ComfyUI-RvTools_v2, then restart.
No models, no downloads. The pack's heavier deps (OpenCV, pilgram) install alongside it for other nodes.
Gotchas
The switch's lineage matters for how you think about it: it's a Comfyroll-style switch that the author "shamelessly took and altered" into all his switch variants - so if you've used Comfyroll switches, this behaves like you expect. The any-type output can occasionally confuse ComfyUI's type inference (some nodes want a concrete type on their input), and if you hit that, a typed switch variant like Conditioning Switch or Model Multi-Switch is the fix.
Also, pack reality check: RvTools v1's repo was pulled down in early 2025, which broke a lot of saved workflows and had people copying node folders between installs. v2 is the renamed re-release, and this node is the v2 name - old graphs referencing v1 switch names need a manual remap. The pack is now deprecated in favor of ComfyUI_Eclipse, so if you're starting fresh, that's the maintained home for this kind of node.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| Input | INT | 11–2 | — |
| input1opt | * | — | |
| input2opt | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| * | * | — |