Extensions/Tojioo Passthrough
ComfyUI Extension

Tojioo Passthrough

Typed passthrough nodes to reduce wire clutter in subgraphs. Includes a multi-type dynamic passthrough, and utility nodes for batch switching among other various quality-of-life improvements.

By Tojioo·Created 11 months ago·Updated 7 months ago· 13
Tojioo/tojioo_passthrough
Nodes40
On cloudLocal install
CategoryTojioo Passthrough/Dynamic Nodes/Switch Nodes, Tojioo Passthrough/Dynamic Nodes/Batch Switch Nodes
Stars13
Updated7 months ago

Nodes (40)

Any Bool Switch

A boolean switch with no selector to fiddle with

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Any CLIP Switch

Swap CLIP models by slot order instead of re-wiring

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Any Conditioning Batch Switch

Merge several conditioning streams into one

Tojioo Passthrough/Dynamic Nodes/Batch Switch Nodes
Any ControlNet Switch

One ControlNet input, several models, zero selector

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Any Float Switch

Pick a float by slot order — strength, denoise, cfg, whatever

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Any Image Batch Switch

Batch multiple images in one go, no manual re-wiring

Tojioo Passthrough/Dynamic Nodes/Batch Switch Nodes
Any Image Switch

The first-non-null image switch you'll actually use

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Any Int Switch

Route seeds, steps and batch sizes by connection order

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Any Latent Batch Switch

Stack latents into a batch without touching the batch size

Tojioo Passthrough/Dynamic Nodes/Batch Switch Nodes
Any Latent Switch

Which latent feeds the sampler? Slot order decides

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Any Mask Batch Switch

Combine masks into one batch for batch inpainting

Tojioo Passthrough/Dynamic Nodes/Batch Switch Nodes
Any Mask Switch

Pick between mask sources by which one is connected first

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Any Model Switch

Swap models without a selector widget

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Any SAM Model Switch

Swap SAM checkpoints by slot order

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Any String Switch

First connected prompt wins

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Any VAE Switch

Route the VAE you actually want, by slot order

Tojioo Passthrough/Dynamic Nodes/Switch Nodes
Bool Passthrough

A boolean that lives on a wire, not a widget

Tojioo Passthrough/Simple Passthrough
Bool Passthrough (Widget)

The bool passthrough with a checkbox you can actually flip

Tojioo Passthrough/Simple Passthrough/Widget Variants
CLIP Passthrough

Carry your CLIP through a subgraph without tangling wires

Tojioo Passthrough/Simple Passthrough
Conditioning Passthrough

One node that carries positive and negative conditioning together

Tojioo Passthrough/Simple Passthrough
ControlNet Passthrough

A clean wire for the most dragged-around object in your graph

Tojioo Passthrough/Simple Passthrough
Dual CLIP Text Encode

Positive and negative conditioning from one node, one CLIP

Tojioo Passthrough/Other
Dynamic Any

The wildcard passthrough for wires that refuse to pick a type

Tojioo Passthrough/Dynamic Nodes
Dynamic Bus

Pack a dozen values onto one wire and unpack them anywhere

Tojioo Passthrough/Dynamic Nodes
Dynamic Passthrough

The node that grows sockets as you wire it

Tojioo Passthrough/Dynamic Nodes
Dynamic Preview

See what's actually inside any wire, in-graph

Tojioo Passthrough/Dynamic Nodes
Float Passthrough

A decimal that travels by wire, not by typing

Tojioo Passthrough/Simple Passthrough
Float Passthrough (Widget)

Type your decimal once, share it everywhere

Tojioo Passthrough/Simple Passthrough/Widget Variants
Image Passthrough

The most-wired type in ComfyUI, given a clean way to travel

Tojioo Passthrough/Simple Passthrough
Int Passthrough

A number that travels by wire, not by typing

Tojioo Passthrough/Simple Passthrough
Int Passthrough (Widget)

One number box, typed once, fanned everywhere

Tojioo Passthrough/Simple Passthrough/Widget Variants
Latent Passthrough

Route the compressed image without touching it

Tojioo Passthrough/Simple Passthrough
Mask Passthrough

Route the thing your inpainting and detailing live on

Tojioo Passthrough/Simple Passthrough
Model Passthrough

Keep your loader as the single source of truth

Tojioo Passthrough/Simple Passthrough
Multi-Passthrough

14 typed sockets, one node, wire only what you need

Tojioo Passthrough
SAMModel Passthrough

A clean lane for the Segment Anything model

Tojioo Passthrough/Simple Passthrough
Text Passthrough

Carry a string across a graph without retyping it

Tojioo Passthrough/Simple Passthrough
Text Passthrough (Widget)

A text box that turns one string into a shared wire

Tojioo Passthrough/Simple Passthrough/Widget Variants
Tiled VAE Settings

Four tiling numbers as wires, so a subgraph can share them

Tojioo Passthrough/Other
VAE Passthrough

Carry the decoder where the decode happens

Tojioo Passthrough/Simple Passthrough
Readme

Tojioo Passthrough Nodes for ComfyUI

Typed passthrough nodes to reduce wire clutter in subgraphs. Includes a multi-type dynamic passthrough, and utility nodes for batch switching among other various quality-of-life improvements.

Nodes

  • Simple Passthroughs: Image, Mask, Latent, CLIP, Model, VAE, ControlNet, SAM Model, String, Int, Float, Bool, and Conditioning (positive/negative). Muted or bypassed predecessors are treated as None.
  • Multi-Passthrough Hub: Optional inputs with typed outputs.
  • Dynamic Passthrough: Multi-input passthrough with automatic type mirroring.
  • Dynamic Any: Single-input passthrough with type mirroring.
  • Dynamic Bus: Carries multiple typed values through a single bus connection.
  • Dynamic Preview: Tabbed viewer for inspecting any data type in-graph.
  • Batch Switch Nodes: Combine compatible inputs into a single batch (Image, Mask, Latent, Conditioning).
  • Switch Nodes: Return the first valid connected input by slot order.
  • Dual CLIP Text Encode: Encodes positive and negative prompts using a shared CLIP model.
  • Tiled VAE Settings: Exposes tiled VAE parameters as connectable outputs.

Install

Manager

Open ComfyUI → Manager → Install Custom Nodes → search "Tojioo Passthrough" → Install → Restart.

Git

cd ComfyUI/custom_nodes
git clone https://github.com/Tojioo/tojioo_passthrough.git

Restart ComfyUI.

Usage

Category Structure:

  • Tojioo Passthrough: Multi-Passthrough hub
  • Tojioo Passthrough/Simple Passthrough: All typed passthroughs, Conditioning Passthrough
  • Tojioo Passthrough/Simple Passthrough/Widget Variants: Widget-based versions of primitive passthroughs
  • Tojioo Passthrough/Dynamic Nodes: Dynamic Passthrough, Dynamic Bus, Dynamic Any
  • Tojioo Passthrough/Dynamic Nodes/Batch Switch Nodes: Batch switching nodes
  • Tojioo Passthrough/Dynamic Nodes/Switch Nodes: First-valid switching nodes

Dual CLIP Text Encode

  • Purpose: Encode a positive and negative text prompt into conditioning using a single shared CLIP model, keeping the two encode nodes consolidated.
  • Behaviour:
    • Accepts one CLIP input and two text widgets (positive, negative)
    • Outputs separate positive and negative CONDITIONING values

Tiled VAE Settings

  • Purpose: Bundle tiled VAE encoding/decoding parameters into connectable outputs so they can be routed cleanly through subgraphs without wiring individual widgets.
  • Behaviour:
    • Exposes tile_size, overlap, temporal_size, and temporal_overlap as typed outputs
    • Default values: tile_size 512, overlap 64, temporal_size 64, temporal_overlap 8
    • All values are adjustable via the built-in widget controls

Example:

<img alt="v1 7 0_Nodes" src="https://github.com/user-attachments/assets/6c7f84a6-14dd-4578-bb8d-503e928fe6c7" />

Batch Switch Nodes

  • Purpose: Combine multiple compatible inputs into a single batch while keeping wiring tidy.
  • Behaviour:
    • Starts with one slot, adds a new slot when the last one gets connected
    • With a single connected input, passes through unchanged
    • With multiple connected inputs, builds a batch when shapes are compatible
    • Muted or bypassed upstream nodes are treated as missing and ignored

Example:

<img alt="image" src="https://github.com/user-attachments/assets/97cf66cd-307e-40e6-a8be-9a014b70a3c5" />

Switch Nodes

  • Purpose: Select the first valid connected input, based on slot order.
  • Behaviour:
    • Dynamic inputs auto-add slots
    • Returns the first connected input by slot number
    • Muted or bypassed upstream nodes are treated as missing and ignored

Example:

<img alt="image" src="https://github.com/user-attachments/assets/4eabfea0-4ec4-4a38-83e8-fb391b60afeb" />

Dynamic Passthrough

  • Purpose: A flexible multi-input passthrough where slot types mirror what you connect.
  • Behaviour:
    • Dynamic inputs and outputs, slots grow as you connect
    • Output slot types mirror their corresponding connected input types
    • Updates live as connections change

Example:

<img alt="image" src="https://github.com/user-attachments/assets/311f7d35-2895-4527-9113-d8c4eaa3aa96" />

Dynamic Preview

  • Purpose: In-graph viewer for inspecting any value across multiple inputs.
  • Behaviour:
    • Accepts any input type — slots grow dynamically as you connect
    • Images and masks display visually; all other types (strings, tensors, conditioning, etc.) display as formatted text
    • Switch between inputs via the built-in tab selector, which scrolls horizontally when tabs overflow the node width
    • No outputs, this node is a pure viewer

Example (together with Dynamic Bus Node):

<img alt="image" src="https://github.com/user-attachments/assets/14202fa5-741a-417c-908c-2589086b2d4a" />

License

GPL-3.0-only. See LICENSE.

Changelog

See CHANGELOG.