ComfyUI Node

Motorway 6x1

Park six, peek at one

By agilly1989Β·Created 2 years agoΒ·Updated about a year agoΒ· 7
Motorway 6x1
  • MOTORWAY πŸšŒπŸ’¨
  • ANY_(A)
  • ANY_(B)
  • ANY_(C)
  • ANY_(D)
  • ANY_(E)
  • ANY_(F)
  • MOTORWAY πŸšŒπŸ’¨
  • ANY (A)
β—„ANY_(A)_keyβ€”β–Ί
β—„ANY_(B)_keyβ€”β–Ί
β—„ANY_(C)_keyβ€”β–Ί
β—„ANY_(D)_keyβ€”β–Ί
β—„ANY_(E)_keyβ€”β–Ί
β—„ANY_(F)_keyβ€”β–Ί

Motorway 6x1 is the "park six, peek at one" node: six inputs in, a single ANY output out, plus the continuing MOTORWAY πŸšŒπŸ’¨ wire. From the agilly1989 Nodes/Motorways pack, it's the stop you use when you mostly want to stash values for later stops but still need to hand one thing off immediately - like staging a batch of parameters and pulling the seed back out to feed a SaveImage node right away.

The 6x1 names the shape: six inputs, one output. It has six key slots (A through F), one per input, and the single output reads by the A key. So of your six lanes, five are pure writes (B through F) and one (A) is a write and a read. Connect something to ANY_(A), key it seed, and the output returns whatever "seed" holds at that point - which, because reads happen after writes, is the value you just plugged in, unless an earlier stop already had something under "seed."

How it works

Like every Motorway node, it's a keyed bag on a bus. The incoming motorway object behaves like a dict with sha256-hashed keys. The node pops the incoming MOTORWAY πŸšŒπŸ’¨, writes each connected input under its _key widget value, clones the bag, reads the A key for the single output, and passes the bag onward. Values written at earlier stops remain readable by name at any later stop, and a reused key gets overwritten rather than merged.

That asymmetry is the useful bit. Need to log six values but only feed one forward? This is the cleanest node for it - the other five live in the bag for whichever downstream stop asks for them by key. The single output is just a convenience tap on lane A.

The inputs and outputs that matter

Required MOTORWAY πŸšŒπŸ’¨ input (Motorway-type only). Six optional inputs ANY_(A) through ANY_(F), each with a _key string widget. Outputs: MOTORWAY πŸšŒπŸ’¨ and one ANY (A). Leave a key empty and that lane idles; leave A's key empty and the output stays unconnected/None, which is the main way beginners trip - an empty key means no output value, not "pass through what I didn't type."

Installing it

ComfyUI Manager - search ComfyUI_agilly1989_motorway - or clone:

cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway

Restart ComfyUI. No requirements.txt, no model downloads; the pack is pure Python on ComfyUI's own comfy_types. It's a beta, one-developer project - the README's own top line promises breakage - so pin it if a workflow depends on it.

Common issues

KeyError: Key: 'x' doesn't exist in motorway (README: 'MotorwayClass' object has no attribute 'hash_') means the output read a key that nothing has written - check spelling and case. And keep the overwrite rule in mind: if an earlier stop wrote under the same key, this node replaces it, and the output - read after the write - shows the new value.

Categoryagilly1989 Nodes/Motorways

Inputs (13)

NameTypeDefaultDescription
MOTORWAY πŸšŒπŸ’¨MOTORWAY πŸšŒπŸ’¨β€”
ANY_(A)opt*β€”
ANY_(B)opt*β€”
ANY_(C)opt*β€”
ANY_(D)opt*β€”
ANY_(E)opt*β€”
ANY_(F)opt*β€”
ANY_(A)_keyoptSTRINGβ€”
ANY_(B)_keyoptSTRINGβ€”
ANY_(C)_keyoptSTRINGβ€”
ANY_(D)_keyoptSTRINGβ€”
ANY_(E)_keyoptSTRINGβ€”
ANY_(F)_keyoptSTRINGβ€”

Outputs (2)

NameTypeDescription
MOTORWAY πŸšŒπŸ’¨MOTORWAY πŸšŒπŸ’¨β€”
ANY (A)*β€”