Axis To Any
The converter that shrugs — Axis To Any just hands the value through
- axis
- *
Axis To Any is the wildcard member of the pack's Axis To X converter family. Every other converter takes the grid's AXIS_VALUE and commits to a concrete type - Axis To STRING, Axis To FLOAT, Axis To MODEL. This one takes the AXIS_VALUE and hands it back as a wildcard, letting ComfyUI figure out the type from whatever's on the other end of the wire.
It exists for the same reason Any To Any does: sometimes the grid is feeding a value whose type you don't want to pin down. The difference is that Axis To Any only sits on the axis side of the pack's machinery - it converts the AXIS_VALUE output of XY Grid Helper (or Any List Iterator) and nothing else. It's the "I'll let the graph decide" option.
How it works
- axis (required) - an
AXIS_VALUEinput, typically therow_valueorcolumn_valueoutput from XY Grid Helper. - * (output) - the same value, declared as a wildcard type.
Internally it's a straight pass-through (return (axis,)). The only "magic" is the wildcard declaration, which lets ComfyUI infer the real type from the destination node. Wire it to a CLIP Text Encode and it behaves like a string; wire it to a checkpoint loader and it behaves like a model.
Where it's genuinely useful
- Mixed-type axes. If your grid list was built with Any List and rows genuinely alternate types, no single typed converter fits - Axis To Any at least lets the wire resolve per connection.
- Prototyping. When you're still sketching the grid and don't know whether the axis will end up a float or an int, this lets you move on and decide later.
The honest caveat
This is the same wildcard trade-off the community argues about with "Anything Anywhere" style nodes: type checking is exactly what catches wiring mistakes, and a wildcard disables it. The typed Axis To X converters exist for a reason - they make the grid's type contract explicit and debuggable. Reach for this one when a typed converter genuinely can't express what you're doing, not as a default.
If the value arrives at the other end as a string "2.5" when you needed a number, a typed converter would have caught that immediately; here you'll find out at runtime. If you want to know which converter family the pack ships, check the axis list: STRING, MODEL, INT, NUMBER, FLOAT, BOOLEAN, VAE, CLIP - and you can add your own types to custom-axis-config.json to generate more.
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 |
|---|---|---|
| * | * | — |