ComfyUI Node

Pipe Switch

The tiny node that keeps group-based workflows alive

By r-vage·Created about a year ago·Updated 5 months ago· 23
Pipe Switch
  • pipe1
  • pipe2
  • pipe
Input1

A pipe switch is the plumbing equivalent of a light switch: it picks which of two bundles of connections gets sent downstream. Pipe Switch [RvTools] does exactly one thing - take pipe1 or pipe2, based on an integer, and hand it to the output. It's boring, and that's the point. In a workflow where everything travels down a single pipe wire, this is how you swap between two complete configurations without rewiring a dozen connections.

What's a pipe, anyway?

In RvTools-land, a pipe is a bundle: model, clip, vae, latent, width, height, batch_size, model_name and vae_name, all riding one connection. Checkpoint Loader v1 (Pipe) and its siblings build that bundle, and the Pipe In Context nodes carry an even richer one. This switch just shuttles whichever bundle is plugged into the selected input.

The inputs that matter

  • Input - the selector: 1 or 2. That's the whole control surface.
  • pipe1, pipe2 - the two candidate pipes. Leave one empty and the switch still works; it just passes whatever is connected on the other side.

Output is a single pipe, which you feed into whatever node consumes pipes downstream (a sampler settings node, a Pipe In Context node, another switch).

The bypass trick (this is where it gets useful)

The author's own workflow pattern is groups that get bypassed, not muted - and this switch is built around that. When the node itself is bypassed, ComfyUI routes the wire straight through from input 1, so whatever's on pipe1 reaches the target directly. Set Input to 2 when you want the alternative, and use bypass (via group bypass in the frontend) as a quick "no, actually use the first one" override. For people who build big group-based workflows - the same crowd that lives on rgthree's Fast Groups Bypasser - this one-to-two behavior is a feature, not a quirk. It's why the switches in this pack exist at all: the author wrote them because other switch sets wouldn't play nice with his bypass-happy layouts.

Installing and gotchas

cd ComfyUI/custom_nodes
git clone https://github.com/r-vage/ComfyUI-RvTools_v2

Restart ComfyUI, or grab it via ComfyUI Manager (search "ComfyUI-RvTools_v2"). No models, no heavy deps beyond the pack's usual opencv/pilgram/pynvml.

Two things to know. First, this pack is deprecated in favor of ComfyUI_Eclipse, which supersedes most of it - this switch has a home there, so migration is easy when you get around to it. Second, don't confuse this with the old v1 RvTools nodes from the deleted original repo: v2 renamed everything so ComfyUI Manager could actually find the nodes. If a downloaded workflow asks for an [RvTools] node that Manager can't locate, check whether it's referencing a v1 name - you'll need to swap it for the v2 node (or the Eclipse equivalent) manually.

Category🫦 RvTools II/ Switches

Inputs (3)

NameTypeDefaultDescription
InputINT11–2
pipe1optpipe
pipe2optpipe

Outputs (1)

NameTypeDescription
pipepipe