Axis To INT
Steps, batch, and integer knobs in a grid
- axis
- INT
Axis To INT is 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 - sampler steps, seed-ish counters, batch sizes, anything with an INT socket. It's the sibling of Axis To FLOAT, aimed at the parameters that refuse to accept decimals.
The mechanics are identical to every Axis To X node: input axis, output INT, pure pass-through at runtime. The converter does the type declaration that lets the grid's unknown-type output connect to an integer input; it does not round, parse, or coerce the value.
The rule that trips people up
Because it doesn't coerce, the value in your list has to already be an int. Which sounds obvious until you remember how grids get built:
- Any List with real integers (
20,24,28) → clean. - Text Splitter → strings.
"20,24,28"becomes"20","24","28"- strings, and Axis To INT will pass a string through as a string, which an INT socket will reject at runtime or feed garbage into the sampler. - Load Lines From Text File → also strings, same story.
If your axis is text-built, convert the strings to ints before the grid (a string-to-int node upstream), or build the axis with numeric inputs in the first place.
When you'd use it
- Steps sweeps - 20 vs 28 vs 36 steps in one grid, to see where a model converges.
- Batch or count sweeps - if your workflow exposes a batch-size parameter.
- Any integer knob your sampler or post-processing node exposes.
It's the kind of node you'll use less than Axis To FLOAT (CFG and denoise are the classic sweep targets), but it's there for the parameters that are integer-only, and a steps grid is a genuinely useful thing to have.
The family note
This is the same generated node as "Axis To Int" in older listings - the pack registers converters from axis-config.json (STRING, MODEL, INT, NUMBER, FLOAT, BOOLEAN, VAE, CLIP) and the casing was captured both ways. You can extend the family by adding your own types to custom-axis-config.json.
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. Found under QQNodes/XYGrid Axis.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| axis | AXIS_VALUE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |