MotorwayInt
An integer that rides the pipe
- MOTORWAY ππ¨
- MOTORWAY ππ¨
- INT
MotorwayInt is a stock Int node with a side gig: it can also be your on-ramp. You get an INT widget (default 0) plus an optional MOTORWAY input whose tooltip says it all: "If not connected will act as a 'Motorway Start' node." So either you feed it an existing Motorway and it joins the pipe, or you leave it unplugged and it creates a fresh bag itself. Either way, your integer goes into the bag under a key.
That key is the second text field, key, defaulting to integer. This is the whole trick of the pack and it's worth spelling out once: the Motorway is a dict-like bag of keyβvalue pairs, stored under sha256 hashes, cloned at every hop so branches don't corrupt each other. This node does a single update(key, value) and passes the bag on. Downstream, any Motorway node whose output key says integer will hand you this same value back - that's the "store once, fetch by name anywhere" pattern that lets you stop dragging step counts, batch sizes, or widths across the whole canvas.
The output list is short and clean: the MOTORWAY (so the pipe keeps flowing) and the INT you just stored, for the times you want the value in hand immediately rather than fetched by key later.
If you're wondering which integer you'd actually carry this way - steps, batch size, width, height, a scheduler choice, a controlnet strength's whole-number neighbor - the answer is any of them, but the most common real use is steps and seed-adjacent values on a generation bundle. The pack treats MotorwayInt, MotorwayFloat, MotorwaySeed, and the two string nodes as first-class entry points, so you can build a workflow that starts with a small row of these instead of MotorwayStart.
Installation is the same for the whole pack:
cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway
then restart ComfyUI, or use ComfyUI Manager and search "agilly1989". No model downloads, no pip requirements - pure Python, so the install is genuinely painless.
The family warnings apply: keys are exact and case-sensitive, and reading a key that was never set throws 'MotorwayClass' object has no attribute 'hash_' (a typo or an ordering problem, not a corrupted graph). And this is a one-person beta - the README literally opens "IF THINGS BREAK ITS BECAUSE I BROKE IT" - so keep it updated and don't build infrastructure on it. For a quick integer on the bus, it's exactly what it looks like and nothing more.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| INT | INT | 0 | β |
| MOTORWAY ππ¨opt | MOTORWAY ππ¨ | Optional Input. If not connected will act as a "Motorway Start" node | |
| keyopt | STRING | integer | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| MOTORWAY ππ¨ | MOTORWAY ππ¨ | β |
| INT | INT | β |