Motorway 1x0
Put one value on the motorway, take nothing back
- MOTORWAY ππ¨
- ANY_(A)
- MOTORWAY ππ¨
The Motorway 1x0 is the motorway's black hole: one value in, nothing comes back out. If that sounds useless, you're missing what a pipe is for. This is a write-only ramp in the agilly1989/ComfyUI_agilly1989_motorway pack - it takes a single value, files it onto the bus under a name you choose, and hands the bus along with no direct output for that value. The point is that later nodes can read it.
That's the whole trick of the keyed pipe idea. ComfyUI's other pipe implementations, like rgthree's Context nodes, carry a fixed set of values. The Motorway instead carries a bag of named values, and a ramp like the 1x0 exists purely to add something to that bag without needing anything in return. In the pack's own Example.json, a 1x0 with the key image sits after the image is produced - it's the node that says "remember this for later," nothing more.
How it works. The node takes the required MOTORWAY ππ¨ input - the live bus - plus one optional wildcard input ANY_(A) with its ANY_(A)_key string field. Connect a value, type a name into the key field, and the value is stored on the MotorwayClass under a sha256-hashed attribute derived from that name. Then the motorway is cloned and passed on. The single declared output is just the bus itself; the value you stored doesn't come back out of this node. Read it later with any ramp that has an output slot, like a 0x1 or 1x1.
Inputs and outputs that matter. The required MOTORWAY ππ¨ input must be flowing from a MotorwayStart or an earlier ramp. The one ANY_(A) input is a wildcard, so you can stash a model, an image, a conditioning, anything. The ANY_(A)_key field is the whole job - it names the value. Pick names that match what later ramps will type, because keys are exact (case-sensitive, no trailing spaces). The output is just the bus.
Install. Via ComfyUI Manager (search "ComfyUI_agilly1989_motorway") or:
cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway
Restart ComfyUI. Pure Python, no extra dependencies or model files.
Common issues. If you wire the output of this node expecting the stored value to come out, you'll find it doesn't - read it from a downstream ramp instead. The signature error 'MotorwayClass' object has no attribute 'hash_' will appear if a later node asks for a key you never wrote, or wrote with a different spelling. And yes, there's a quirk in the code where if you fill the key field, the node internally returns a second value that gets dropped because this node declares only one output - harmless, just don't build on it. This whole pack is beta, so expect the occasional breaking update; that's part of the deal.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| MOTORWAY ππ¨ | MOTORWAY ππ¨ | β | |
| ANY_(A)opt | * | β | |
| ANY_(A)_keyopt | STRING | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MOTORWAY ππ¨ | MOTORWAY ππ¨ | β |