Motorway 1x4
When one value needs to reach four places
- MOTORWAY ππ¨
- ANY_(A)
- MOTORWAY ππ¨
- ANY (A)
- ANY (B)
- ANY (C)
- ANY (D)
Some values get used everywhere. A seed, a denoise strength, a base image - these things feed four or five nodes in a workflow, and dragging the same wire to every one of them is how canvases turn into spaghetti. The Motorway 1x4 is the node for that situation: one value in, four values out, all from the pack's keyed pipe.
It's part of agilly1989/ComfyUI_agilly1989_motorway, a one-author beta pack that implements a pipe differently from the mainstream. Where rgthree's Context nodes carry a fixed bundle down one wire, the Motorway is a bag of values named by string keys. The 1x4 is a fan-out: you write one value into the bag, then read up to four values back out. The twist is that only output A is tied to your just-written value; outputs B, C and D can read anything that's on the bus.
How it works. The single ANY_(A) input pairs with ANY_(A)_key - connect a value, name it, and it's stored on the MotorwayClass under a sha256-hashed attribute. The four outputs read by key: ANY (A) echoes the value under ANY_(A)_key, while ANY (B), ANY (C) and ANY (D) pull whatever was stored under their own keys. Because the node clones the bag before producing outputs, all four reads are from the same snapshot - consistent, even if you're mixing your fresh value with older ones.
Inputs and outputs that matter. The required MOTORWAY ππ¨ input must be flowing from a MotorwayStart or another ramp. All the ANY_ slots are wildcards, so you can split a seed, an image, a conditioning - anything. The key fields are the entire interface: A names the write and the echo; B, C and D name the other reads. A typical use: seed in on A, seed out on A for your sampler, plus read your model, clip and vae off B, C, D for the same sampler - one node feeding an entire sampling stage.
Install. From ComfyUI Manager (search "ComfyUI_agilly1989_motorway") or:
cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway
Restart ComfyUI. Pure Python, nothing extra.
Common issues. The recurring gotcha is 'MotorwayClass' object has no attribute 'hash_' - a read key that matches nothing written upstream. Keys are exact and case-sensitive; a Seed vs seed mismatch will bite. Blank read keys drop outputs, shrinking the tuple against ComfyUI's fixed output count. And it bears repeating: this pack's README opens with an admission of brokenness and a promise to fix it "when I get the time/motivation". It works for most people most of the time - just don't treat updates as safe.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| MOTORWAY ππ¨ | MOTORWAY ππ¨ | β | |
| ANY_(A)opt | * | β | |
| ANY_(A)_keyopt | STRING | β | |
| ANY_(B)_keyopt | STRING | β | |
| ANY_(C)_keyopt | STRING | β | |
| ANY_(D)_keyopt | STRING | β |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| MOTORWAY ππ¨ | MOTORWAY ππ¨ | β |
| ANY (A) | * | β |
| ANY (B) | * | β |
| ANY (C) | * | β |
| ANY (D) | * | β |