ComfyUI Node

Motorway 1x5

The seed that feeds a whole stage

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

The Motorway 1x5 is the fan-out node for when one value has to reach half a dozen consumers. One input in, five outputs out, all riding the keyed pipe from agilly1989/ComfyUI_agilly1989_motorway. If you've ever wished a single seed could feed your sampler, your variation node, and three other places without five copies of the same wire, this is the node you were looking for.

The pack is one author's reimplementation of the "pipe" idea for ComfyUI. Rather than a fixed set of slots, the motorway is a bag of values tagged with string keys; any ramp node can write values in and read values out by name. The 1x5 is a small write / big read shape - the classic "distribute" node. You write one thing in and read it (plus up to four other things already on the bus) out to wherever they're needed.

How it works. The single ANY_(A) input is a write: fill ANY_(A)_key and the value is stored on the MotorwayClass under that name, hashed to an attribute via sha256. The five outputs read by key. ANY (A) echoes what you just wrote (same key), while ANY (B) through ANY (E) read whatever earlier ramps stored under their keys. The bus is cloned before outputs are produced, so all five reads come from one snapshot - the node can't return a value written by a later node.

Inputs and outputs that matter. The required MOTORWAY πŸšŒπŸ’¨ input must already be live from a MotorwayStart. ANY_(A) in, ANY (A)–ANY (E) out - all wildcards, accepting any type. The five _key fields are the whole interface: A names the write and the first read; B–E name the other reads. The natural setup is a seed in on A with seed as the key, then feed output A to the sampler while pulling your model, clip, vae and latent off B, C, D, E - one node standing in for five wires.

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 or downloads - pure Python.

Common issues. Expect the pack's signature error if a read key doesn't match any write: 'MotorwayClass' object has no attribute 'hash_'. Keys are exact and case-sensitive, and writes must happen upstream of reads. Blank read keys silently drop outputs and shrink the tuple, which trips ComfyUI's fixed output count. And keep the beta reality in mind - the README's first line admits the thing is broken and will get fixed when the author feels like it. It's a genuinely useful little pack, but "works on my system" is doing a lot of work in its documentation.

Categoryagilly1989 Nodes/Motorways

Inputs (7)

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

Outputs (6)

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