Motorway 1x1
One value in, one value out, renamed
- MOTORWAY ππ¨
- ANY_(A)
- MOTORWAY ππ¨
- ANY (A)
The Motorway 1x1 is the smallest node in the pack that does anything, and what it does is quietly brilliant: one value in, one value out, with a name attached. It's the pipe's on-ramp, off-ramp, and rename tool all in one - part of agilly1989/ComfyUI_agilly1989_motorway, the author's keyed-pipe system for ComfyUI.
Here's why it matters. In this pack, a "motorway" is a bag of named values riding one wire, and the 1x1 is where you interact with it directly. Connect a value to the single ANY_(A) input, type a name into ANY_(A)_key, and that value is written to the bag under that name. The ANY (A) output then reads the value back out under the same key. If you connect an input, it reads back the thing you just wrote - a passthrough with a name. If you don't connect an input but fill the key, it acts as a pure read: pull any value that earlier ramps stored under that name, straight out of the bus.
How it works. The motorway is a MotorwayClass object that stores values as attributes named hash_ plus the sha256 of your key. Every ramp clones the bag before handing it on, so this node sees a stable snapshot. Write-then-read in the same node means output A is effectively "the value currently stored under this key" - which is why the 1x1 doubles as a great debugging tool: place one anywhere in a chain, type a key, and see what's actually on the bus at that point.
Inputs and outputs that matter. The required MOTORWAY ππ¨ input is the pipe - it must already be flowing from a MotorwayStart or an earlier ramp. The optional ANY_(A) input and ANY (A) output are both wildcard-typed. The ANY_(A)_key field is the entire interface: it names the write and the read. Keep it consistent with the rest of your chain, and remember keys are case-sensitive and exact.
Install. From ComfyUI Manager (search "ComfyUI_agilly1989_motorway") or:
cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway
Restart ComfyUI. No dependencies, no models to fetch.
Common issues. The classic error is 'MotorwayClass' object has no attribute 'hash_' - a key that no upstream node ever wrote. If you see it on a 1x1 you've wired as a pure read, you either typo'd the key or you're reading before the writer runs. Also, a blank ANY_(A)_key means nothing gets stored and no output is produced, which can shrink the output tuple and confuse ComfyUI's wiring. And as always with this pack: it's a genuine beta. The README's first line is a confession of brokenness; treat updates as potentially workflow-breaking and save before you pull.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| MOTORWAY ππ¨ | MOTORWAY ππ¨ | β | |
| ANY_(A)opt | * | β | |
| ANY_(A)_keyopt | STRING | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| MOTORWAY ππ¨ | MOTORWAY ππ¨ | β |
| ANY (A) | * | β |