Axis To Int
The steps-and-counts converter, under its other spelling
- axis
- INT
Axis To Int is the same node as Axis To INT - the pack's converter that takes an AXIS_VALUE from XY Grid Helper and re-declares it as an integer so you can sweep whole-number parameters like sampler steps. The two spellings are one generated node that node listings captured with different casing; either search lands you in the same place. Here's what the converter actually does and the one way it'll bite you.
What it does
- axis (required) - the
AXIS_VALUE, typically therow_valueorcolumn_valueoutput from XY Grid Helper. - INT (output) - the same value, declared as an integer type.
Like every Axis To X node, it's a pass-through. It exists because ComfyUI won't let the grid's unknown-type output connect to an INT socket - the converter declares the type so the wire is legal. It does not parse or round anything.
The string problem, one more time
The value has to already be an int. And the most common way it isn't is building the axis from text:
- Text Splitter on
"20,24,28"→ strings. - Load Lines From Text File → strings (every line).
- Any List with typed integer inputs → fine.
A string flowing through Axis To Int arrives at the sampler as a string, and the result is either a hard failure or silent garbage. If your list is text-built, run the values through a string→int conversion upstream of the grid, or use numeric inputs to build the axis.
When it earns its keep
- Steps sweep - 20/24/28/32 steps against a fixed prompt, the classic convergence check.
- Integer-only params - batch counts, seed offsets, tile sizes exposed as INT.
Sweeping integers is generally rarer than sweeping floats in this pack (CFG and denoise dominate grid life), but a steps grid is one of the more useful things you can build, and this is the node that makes it connect.
The family context
The pack's converters are generated from axis-config.json - currently STRING, MODEL, INT, NUMBER, FLOAT, BOOLEAN, VAE, CLIP. Add a type to custom-axis-config.json and restart and you get a new Axis To <type> node automatically. That's the whole design: the grid hands you an untyped value, and the converter family re-types it at the boundary.
Installing it
Part of qq-nodes-comfyui:
cd ComfyUI/custom_nodes
git clone https://github.com/kenjiqq/qq-nodes-comfyui
Restart, or install qq-nodes-comfyui via ComfyUI Manager. Under the pack's QQNodes/XYGrid family.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| axis | AXIS_VALUE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |