ComfyUI Node

MotorwayFloat

Put a number on the bus

By agilly1989Β·Created 2 years agoΒ·Updated about a year agoΒ· 7
MotorwayFloat
  • MOTORWAY πŸšŒπŸ’¨
  • MOTORWAY πŸšŒπŸ’¨
  • FLOAT
β—„FLOAT0.000β–Ί
β—„keyfloatβ–Ί

MotorwayFloat is the pack's way of getting a floating-point number onto the Motorway and then handing it back to you. It's a primitive node in the same spirit as a stock Float node, with one twist: it knows how to talk to the bus.

Here's what you actually get. A FLOAT widget with a step of 0.001 for fine control, defaulting to 0. An optional MOTORWAY input - and read the tooltip on this one, because it's the important bit: "If not connected will act as a 'Motorway Start' node." That means this node can be your entry point. Wire nothing into the Motorway input and MotorwayFloat quietly creates a fresh bag for you, same as MotorwayStart would. Wire an existing Motorway in and it joins the ride. Either way it stores your float under a key - the key field, default float - and outputs both the Motorway and the FLOAT value.

The mechanism is the whole pack in miniature. The Motorway is a dict-like bag of key→value pairs stored under sha256 hashes, cloned at every hop. This node does one update(key, value) into the bag and passes the bag along. If you later have a Motorway 9x4 whose output key field says float, you'll get this exact value back out wherever you need it - that's the "put a number on the bus, fetch it by name downstream" pattern that makes these pipes declutter a graph. Instead of dragging a CFG or a denoise wire across half the canvas, you stash it once and read it by key.

Want to use it as a start node? Fine - it's one of the pack's blessed entry points, alongside MotorwaySeed, MotorwayInt, MotorwayStr, and MotorwayStrMulti. The README's rule "you must start with MotorwayStart" is really "you must start with something that can create a bag," and any of these will.

Install is the pack-standard two steps:

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

(restart ComfyUI after), or just search "agilly1989" in ComfyUI Manager. No models, no Python dependencies to wrangle.

Gotchas are shared with the whole family. Keys are exact and case-sensitive - if you store under float but ask for Float downstream, you'll hit 'MotorwayClass' object has no attribute 'hash_', which just means the key was never written. And remember this is a one-person beta; the author's own README opens with "IF THINGS BREAK ITS BECAUSE I BROKE IT." It works, it's genuinely handy for carrying a CFG or denoise value through a big graph, but treat it as a convenience, not load-bearing infrastructure.

Categoryagilly1989 Nodes/Utilities/Primitives/Numbers

Inputs (3)

NameTypeDefaultDescription
FLOATFLOAT0.000β€”
MOTORWAY πŸšŒπŸ’¨optMOTORWAY πŸšŒπŸ’¨Optional Input. If not connected will act as a "Motorway Start" node
keyoptSTRINGfloatβ€”

Outputs (2)

NameTypeDescription
MOTORWAY πŸšŒπŸ’¨MOTORWAY πŸšŒπŸ’¨β€”
FLOATFLOATβ€”