Motorway 5x4
Five in, four out, one lane for the bus
- MOTORWAY ππ¨
- ANY_(A)
- ANY_(B)
- ANY_(C)
- ANY_(D)
- ANY_(E)
- MOTORWAY ππ¨
- ANY (A)
- ANY (B)
- ANY (C)
- ANY (D)
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.
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| MOTORWAY ππ¨ | MOTORWAY ππ¨ | β | |
| ANY_(A)opt | * | β | |
| ANY_(B)opt | * | β | |
| ANY_(C)opt | * | β | |
| ANY_(D)opt | * | β | |
| ANY_(E)opt | * | β | |
| ANY_(A)_keyopt | STRING | β | |
| ANY_(B)_keyopt | STRING | β | |
| ANY_(C)_keyopt | STRING | β | |
| ANY_(D)_keyopt | STRING | β | |
| ANY_(E)_keyopt | STRING | β |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| MOTORWAY ππ¨ | MOTORWAY ππ¨ | β |
| ANY (A) | * | β |
| ANY (B) | * | β |
| ANY (C) | * | β |
| ANY (D) | * | β |