XY Any(xyAny)
The XY Any node is a simple logic/pass-through utility from the EasyUse/Logic category.
xy Any
Description
The XY Any node is a simple logic/pass-through utility from the EasyUse/Logic category. It accepts two values, X and Y, and routes them to its two outputs according to the selected direction. It does no type conversion or processing, so it can be used with any data type, including tensors, latents, conditioning, models, masks, strings, numbers, and more.
Inputs
X
- Type:
ANYTYPE - Required: Yes
The first input value. It is passed through unchanged.
Y
- Type:
ANYTYPE - Required: Yes
The second input value. It is passed through unchanged.
direction
- Type:
COMBO - Options:
horizontal,vertical - Required: Yes
- Default:
horizontal
Controls how the two values are routed to the outputs.
horizontal— the first output receivesX, and the second output receivesY.vertical— the first output receivesY, and the second output receivesX.
Outputs
First output
- Type:
ANYTYPE
Receives either X or Y, depending on direction.
Second output
- Type:
ANYTYPE
Receives the remaining value (Y or X), depending on direction.
Usage Notes
Use XY Any when you need to swap two values at a single point in the graph, such as alternating which input goes into a downstream node without rewiring the graph. Both inputs are required; if one value is unavailable, connect an appropriate placeholder for that data type. Because both outputs are ANYTYPE, the node can be inserted into existing connections without forcing a specific data type.
Comments
Sign in with GitHub to join the discussion.