ComfyUI Node

Motorway 1x3

Fan-out without the fan

By agilly1989Β·Created 2 years agoΒ·Updated about a year agoΒ· 7
Motorway 1x3
  • MOTORWAY πŸšŒπŸ’¨
  • ANY_(A)
  • MOTORWAY πŸšŒπŸ’¨
  • ANY (A)
  • ANY (B)
  • ANY (C)
β—„ANY_(A)_keyβ€”β–Ί
β—„ANY_(B)_keyβ€”β–Ί
β—„ANY_(C)_keyβ€”β–Ί

The Motorway 1x3 is the fan-out node of the pack's small end: one value goes in, three values come out. Most of the time you'll use it as a splitter - connect a single value, let it ride the bus, and read it (plus two other stored values) off at three points without dragging the original wire across the graph.

It belongs to agilly1989/ComfyUI_agilly1989_motorway, the keyed-pipe system from a single author who didn't like how other people's pipes worked. The design: one wire carries a bag of named values, and any "Motorway AxB" node is a ramp with A write lanes and B read lanes. The 1x3 is the smallest ramp with a genuinely useful fan-out - one input, three outputs - which makes it the node you drop in when three different spots downstream all need the same thing (or three different things that happen to be on the bus).

How it works. The single ANY_(A) input is a write: fill ANY_(A)_key and the connected value is stored on the MotorwayClass under that name (keys are sha256-hashed to attribute names internally). The three outputs read by key. Output ANY (A) reads the value under ANY_(A)_key - normally the same value you just wrote, an echo. Outputs ANY (B) and ANY (C) read under their own keys, pulling whatever earlier ramps stored there. The node clones the bus before producing outputs, so all three reads come from one snapshot.

Inputs and outputs that matter. The required MOTORWAY πŸšŒπŸ’¨ input must already be live from a MotorwayStart or an earlier ramp. ANY_(A) in, ANY (A), ANY (B), ANY (C) out - all wildcard-typed. The three _key fields are the interface: A names the write and the first read, B and C name the other two reads. In practice that means the 1x3 is both a splitter (send one value to three consumers) and a mixer of a sort (one fresh value plus two older ones, all in one tidy package).

Install. ComfyUI Manager (search "ComfyUI_agilly1989_motorway") or:

cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway

Restart ComfyUI. No dependencies, no model downloads.

Common issues. The signature error 'MotorwayClass' object has no attribute 'hash_' means one of your read keys never matched a write upstream - check spelling, case, and ordering (writes must happen before reads in the chain). A blank read key silently drops that output, shrinking the tuple and confusing ComfyUI's fixed output wiring. And don't forget what you're running: the README's first line is literally "BIG BROKEN WITH ASYNC WILL FIX WHEN I GET THE TIME/MOTIVATION". It's a beta pack, so expect the occasional breaking update and keep your workflows saved.

Categoryagilly1989 Nodes/Motorways

Inputs (5)

NameTypeDefaultDescription
MOTORWAY πŸšŒπŸ’¨MOTORWAY πŸšŒπŸ’¨β€”
ANY_(A)opt*β€”
ANY_(A)_keyoptSTRINGβ€”
ANY_(B)_keyoptSTRINGβ€”
ANY_(C)_keyoptSTRINGβ€”

Outputs (4)

NameTypeDescription
MOTORWAY πŸšŒπŸ’¨MOTORWAY πŸšŒπŸ’¨β€”
ANY (A)*β€”
ANY (B)*β€”
ANY (C)*β€”