π CR Clip Input Switch
Flip between two CLIP sources with one number
- clip1
- clip2
- CLIP
- show_help
You've got two CLIP encoders wired up - maybe one from your base checkpoint and one from a checkpoint with a swapped-in text encoder - and you want to try each without constantly dragging wires around. That's the whole job here. It's a manual A/B switch for the CLIP type: two inputs go in, you set a number, and one of them comes out.
It's part of Comfyroll Studio (co-authored by Suzie1 and RockOfFire), one of the older, sprawling utility packs. This particular node adds zero generation capability - it's pure routing. Think of it as a two-position selector you can flip from the node instead of by re-plugging cables.
How it works
There's one control that matters: Input, an integer you set to 1 or 2. Set it to 1 and clip1 passes straight through to the output; set it to 2 and clip2 does. That's it. Nothing is blended, nothing is modified - the selected CLIP comes out the other side untouched, ready to feed a text encode node or anything else that wants a CLIP.
The two CLIP inputs are technically optional, which matters more than it sounds: you can leave one side unconnected while you build a graph. But whichever number you select, that side has to actually be connected, or the switch has nothing to hand downstream.
The inputs that matter
Input(1 or 2, default 1) - the selector. This is the only knob.clip1/clip2- the two CLIP sources you're choosing between.
Output is a single CLIP (plus a show_help string, which is just a link to the Comfyroll wiki - you don't wire it anywhere). Route the CLIP into your CLIP Text Encode, a LoRA loader's clip input, or wherever the encoder needs to go.
Where you'd actually reach for it
Honestly, for two options this node's value is marginal - you could just move a wire. Where it earns its place is inside a reusable template: if you build a workflow you reload constantly, a switch means you flip a number instead of rewiring every time. It also pairs with Comfyroll's other logic nodes so a single upstream value can steer several switches at once (there's a companion "Set Switch From String" style pattern in the pack for exactly that). If you need more than two options, Comfyroll also ships 4-way switches for some types.
One thing to be clear on: this is a manual switch. You set the number by hand. It doesn't automatically pick the "connected" one or fall back if a branch is empty - the number is the decision.
How to install it
- ComfyUI Manager: open the Manager, search
Comfyroll Studio, install, restart. - Manual:
cd ComfyUI/custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git, then restart ComfyUI.
No models, no extra downloads - it's pure plumbing.
Common issues
The failure you'll actually hit isn't with this node - it's the whole pack failing to load. Comfyroll is a big, older pack, and on newer ComfyUI builds one of its submodules occasionally fails to import (people report the Graphics or Utility module throwing during startup). When that happens the console shows a cascade of NameError: name 'CR_...' is not defined messages and none of the CR nodes appear in your menu. The trick is to scroll up to the first traceback in the console - that's the real error; everything after it is fallout. Updating the pack through the Manager usually clears it, since the maintainers have patched these as ComfyUI moved on.
If the node loads fine but "does nothing," check the obvious: the number you set points at a branch that's actually connected. Select 2 with nothing in clip2 and you'll get an error, not silence.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| Input | INT | 11β2 | β |
| clip1opt | CLIP | β | |
| clip2opt | CLIP | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| CLIP | CLIP | β |
| show_help | STRING | β |