ComfyUI Node

Motorway 5x4

Five in, four out, one lane for the bus

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

Motorway 5x4 is the "five in, four out, one spare" ramp from the agilly1989 Motorway pack. Four of the five inputs line up with four outputs, and the fifth input is a pure store lane - file a value under a key and let a downstream ramp pull it later. It's a consolidation node for the workflow where four things need to keep flowing and a fifth just needs to get onto the bus. Unremarkable on its own, quietly useful in the middle of a crowded graph.

The pack is a pipe implementation. A MotorwayClass bus carries values under string keys from node to node, and each Motorway AxB is an on/off ramp. The bus starts with MotorwayStart (or a Motorway primitive like MotorwayStr), always continues out of the first output socket, and is cloned at every node - so a fork that splits the same bus into two ramps gives each branch its own snapshot. The README's candid status: "CURRENTLY IN ACTIVE DEVELOPMENT (BETA)! IF THINGS BREAK ITS BECAUSE I BROKE IT." It works, but it's a hobby build.

The node

Required input MOTORWAY πŸšŒπŸ’¨; five data inputs ANY_(A) through ANY_(E), typed * so they accept any type; five key fields ANY_(A)_key through ANY_(E)_key; outputs ANY (A) through ANY (D) with the bus always first.

Lanes A–D are write-through: input A files under key A, output ANY (A) reads key A back out. Input E is the odd one out - no matching output, so it's purely "store this on the bus." Feed a seed in on ANY_(E) with key seed and some ramp two nodes later can type seed into a key field and pull it. The other outputs can also act as pure exits if you'd rather: disconnect the input, type an existing key from upstream into the key field, and the output emits that value.

Install

ComfyUI Manager, search "ComfyUI_agilly1989_motorway". Or:

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

Restart ComfyUI. No model downloads, no pip packages - pure Python.

Common issues

The README documents its own signature error: 'MotorwayClass' object has no attribute 'hash_...' - you pulled a key that was never written. Keys are sha256-hashed internally, so a typo lands on an empty slot rather than a helpful "key not found" message. And the blank-key rule applies everywhere: wire an output, leave its key blank, get nothing. Fill the key for every lane you actually use.

Categoryagilly1989 Nodes/Motorways

Inputs (11)

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

Outputs (5)

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