ComfyUI Extension: ComfyUI-SimpleSwitch
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
ComfyUI custom node for first-non-empty wildcard switching across 6 inputs.
Looking for a different extension?
Custom Nodes (4)
README
ComfyUI Simple Switch
ComfyUI custom nodes for returning the first available value from six optional inputs.
What it does
SimpleSwitch- Accepts six optional wildcard inputs:
input01...input06 - Returns the first non-empty input in order
- Preserves original behavior for empty model/clip context dictionaries
- Uses wildcard typing so it can pass through most ComfyUI value types
- Preserved as the original implementation behavior
- Accepts six optional wildcard inputs:
SimpleLatentSwitch- Accepts six optional
LATENTinputs - Returns the first non-empty latent in order
- Useful for generic latent routing where latent subtype does not matter
- Accepts six optional
SimpleVideoLatentSwitch- Accepts six optional
LATENTinputs - Returns the first non-nested 5D video latent
- Use this for LTX video latent branches
- Accepts six optional
SimpleAudioLatentSwitch- Accepts six optional
LATENTinputs - Returns the first latent compatible with LTX audio decode
- Rejects incompatible latent shapes instead of forwarding them blindly
- Accepts six optional
Credits
This node is isolated and renamed from EGRYQHNode in:
- 11dogzi/Comfyui-ergouzi-Nodes
- Source file:
nodes/egryqh.py
Original author: 11dogzi
Installation
Clone into your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes
git clone https://github.com/boobkake22/ComfyUI-SimpleSwitch.git
Restart ComfyUI after installing.
Usage
- Add
SimpleSwitchfor general pass-through selection,SimpleLatentSwitchfor subtype-agnostic latents,SimpleVideoLatentSwitchfor LTX video branches, orSimpleAudioLatentSwitchright beforeLTXV Audio VAE Decode. - Connect values to
input01...input06in your preferred priority order. - Use
outputdownstream.
LTX audio note
LTX video latents and LTX audio latents both use the ComfyUI LATENT socket type, but
they are not interchangeable. The video path expects a plain 5D video latent, while the
audio path expects a 4D audio latent or a nested AV latent. If you route LTX latents
through the generic wildcard SimpleSwitch, or through a subtype-blind latent switch,
you may only discover the mismatch much later at decode time.
Use SimpleVideoLatentSwitch for LTX video latent branches and SimpleAudioLatentSwitch
immediately before LTXV Audio VAE Decode for audio latent branches.
License
This repo includes the original upstream LICENSE from
11dogzi/Comfyui-ergouzi-Nodes.
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.