Nodes/Shima/Shima Route (2)
ComfyUI Node

Shima Route (2)

The Shima Route (2)

By KDB-USJP·Created 6 months ago·Updated 6 months ago· 2
Shima Route (2)
  • in_1
  • in_2
  • out_1
  • out_2

The Shima Route (2) is the two-slot version of the pack's routing suite: two wildcard inputs and two pass-through outputs, so a pair of related signals - say, the positive and negative conditioning for a sampler - can travel across the canvas as a matched set instead of two noodles at different angles. Like its one-slot sibling, it does nothing to your data. Its entire job is legibility.

The signals don't even have to be the same type. Because both sockets are wildcards (*), in_1 can carry an IMAGE while in_2 carries a STRING - the node doesn't care and won't enforce a match. The color coding on the outputs updates to whatever type each input actually connects, so you can tell at a glance which wire is which.

How it works

Same plumbing as every routing node in the pack: ANY wildcard inputs, VALIDATE_INPUTS returning true to skip type checks, and a route() method that returns the inputs in order. It returns float("NaN") from IS_CHANGED, so the node re-executes every run - correct for a wire segment, with the usual caveat that an always-dirty node costs you the execution cache for anything behind it. Each input is optional, and an unwired one passes through as None.

Right-click the node to move the ports to any side, which is the feature that lets you route a matched pair around a cluttered canvas without crossing wires. The pack's own node reference describes these as "named pass-through reroute nodes with color-coded labels" for "organizing wire runs without functionality changes" - which is exactly right: functionality is untouched, organization is the product.

The inputs and outputs

  • in_1, in_2 (optional, any type) - the two signals.
  • out_1, out_2 - pass-throughs, same order.

Where it fits

Anywhere two related wires travel together: a positive/negative pair, a left/right image pair for a comparison, an image-and-mask bundle. If you have only one signal that needs bending, the Route (1) is simpler; if you're routinely moving three to five together, the Route (3)–(5) versions are waiting. Keep in mind the pack also ships Multi-Pipe nodes for up to 15 typed connections if you're doing serious bundling.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/KDB-USJP/shima_wf.git Shima
pip install -r requirements.txt

Restart, then Shima/Routing → Shima Route (2). ComfyUI Manager: search "Shima". First boot auto-installs ComfyUI-Impact-Pack and cg-use-everywhere if missing (the Use Everywhere dependency for island auto-linking) - expected.

Common issues

The usual trip-up is slot order: because the colors and labels only appear once something is connected, an unwired in_2 can leave you guessing which output is which - the outputs always mirror the inputs 1:1 in order, so trace from the source rather than assuming. And since this is a pure pass-through, a "missing" value downstream usually means the input wasn't wired, not that the route ate it.

CategoryShima/Routing

Inputs (2)

NameTypeDefaultDescription
in_1opt*Input 1
in_2opt*Input 2

Outputs (2)

NameTypeDescription
out_1*Output 1
out_2*Output 2