Axis To Number
The little node that makes an XY grid over CFG actually work
- axis
- NUMBER
qq-nodes' whole pitch is "XY plot anything." Efficiency Nodes hands you a fixed menu of things you can sweep - CFG, seed, a few sampler settings - but this pack is the one people reach for when they want to grid their parameters, whatever those are. The catch is that the XY Grid Helper hands you each current value as an opaque AXIS_VALUE, and something has to turn that into a type the rest of the graph will accept. That something is the Axis To converter family, and Axis To Number is the one you'll use most.
Wire it like this: XY Grid Helper's row_value (or column_value) → Axis To Number's axis input → NUMBER out → straight into the KSampler's cfg or steps slot. Feed the helper's row/column lists from Any List or a text file, and you've got a grid where each column is a different CFG value. The README's own example workflow is literally "XY Grid over prompt and cfg value," and this node is the cfg half of that sentence.
Mechanically it's about as simple as a node gets, which is the point. It takes the current axis value and re-labels it with the NUMBER type. "NUMBER" isn't a marketing flourish - in ComfyUI's type system it means "a float or an int, could be either," so axis values like 7 and 7.5 both flow through, and the output plugs into FLOAT and INT inputs alike. That's exactly why this is the right converter for numeric axes rather than a strict FLOAT one.
Inputs and outputs are exactly one each: axis (AXIS_VALUE) in, NUMBER out, no optional inputs, nothing to configure.
One naming trap before you go hunting: you'll see this listed two ways - "Axis To Number" and the all-caps "Axis To NUMBER." Same node, same input, same output. The pack generates the whole converter family at startup by reading axis-config.json, and that file spells the types in caps, so "Axis To NUMBER" is the canonical registration and the title-case spelling is the same converter under a friendlier name. Land on either comfy.icu page and you're fine.
Install it as part of the pack - Manager, or:
cd ComfyUI/custom_nodes
git clone https://github.com/kenjiqq/qq-nodes-comfyui
then restart ComfyUI. No models to download, no extra Python deps beyond what ComfyUI ships (torch, Pillow, numpy). If you're building the actual grid, note that the pack calls in LEv145/images-grid-comfy-plugin for the final tiled image via node expansion - Manager will offer it when the workflow needs it.
Where people get burned: the grid only produces the right output if you click Reset on the XY Grid Helper before a run and queue as many prompts as the grid needs (the button shows a running "X of Y"). And a NUMBER axis is numeric-only - push a string through and the downstream node will reject the type. Old versions of the pack also crashed the frontend on newer ComfyUI builds with a structuredClone error around the reset button; that fix is in the shipped JS now, so keep the pack updated if you ever see it.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| axis | AXIS_VALUE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| NUMBER | NUMBER | — |