Motorway 4x3
Four in, three out β the slightly asymmetric ramp
- MOTORWAY ππ¨
- ANY_(A)
- ANY_(B)
- ANY_(C)
- ANY_(D)
- MOTORWAY ππ¨
- ANY (A)
- ANY (B)
- ANY (C)
Motorway 4x3 is the almost-symmetric ramp from the agilly1989 Motorway pack: four lanes in, three lanes out. It's for the workflow that's one value short of a clean 4x4 - you've got four things you want to consolidate, but only three of them need to stay as live wires into the next phase. It's a workhorse middle-of-graph node, unglamorous but handy for keeping a bus fed while a few lanes keep flowing.
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 MotorwayFloat), and always continues out of the first output socket - even a 4x3 with only three data outputs keeps the bus alive.
Reading the node
Required input MOTORWAY ππ¨, plus four data inputs ANY_(A) through ANY_(D) (typed *, any type rides) and four key fields ANY_(A)_key through ANY_(D)_key. The generator hands every input and every output a key slot, so the four slots here cover all four inputs and the three outputs.
Each letter's key is shared between that letter's input and output. Input A files under key A; output ANY (A) reads key A back out. Lanes A, B and C are therefore write-through - feed the model in on A with key model and output ANY (A) hands it back out - while input D is a pure store lane: file it under a key and let a downstream node pull it. If you want, you can also ignore the inputs entirely and just use the three outputs as exits: type seed, model, clip into the three key fields and pull whatever the bus picked up upstream.
The bus is cloned at every node, so writes in one branch don't leak sideways into a sibling branch - which is the property that lets you fork the same bus into several ramps and edit values in one without wrecking the others.
Install
ComfyUI Manager search "ComfyUI_agilly1989_motorway", or:
cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway
Restart ComfyUI. No models, no pip deps - pure Python, and beta ("IF THINGS BREAK ITS BECAUSE I BROKE IT" is the README's opening line, so save your work).
Common gotchas
'MotorwayClass' object has no attribute 'hash_...' is the pack's signature error: you asked for a key nobody wrote yet. Keys are hashed internally, so a typo lands on an empty slot rather than a helpful message. And the blank-key rule: an output you wire with an empty key produces nothing. Fill keys for everything you actually use.
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| MOTORWAY ππ¨ | MOTORWAY ππ¨ | β | |
| ANY_(A)opt | * | β | |
| ANY_(B)opt | * | β | |
| ANY_(C)opt | * | β | |
| ANY_(D)opt | * | β | |
| ANY_(A)_keyopt | STRING | β | |
| ANY_(B)_keyopt | STRING | β | |
| ANY_(C)_keyopt | STRING | β | |
| ANY_(D)_keyopt | STRING | β |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| MOTORWAY ππ¨ | MOTORWAY ππ¨ | β |
| ANY (A) | * | β |
| ANY (B) | * | β |
| ANY (C) | * | β |