EasyUse/Logic/Switchgenerated
Image Switch(imageSwitch)
Image Switch passes one of two input images through to its single IMAGE output based on a boolean control value.
image Switch
image_a
image_b
IMAGE
boolean
Easy Use
Image Switch passes one of two input images through to its single IMAGE output based on a boolean control value. It is a simple selector node rather than an image-processing node, so the selected image is passed through unchanged.
Inputs
- image_a (
IMAGE, required): First input image. This image is forwarded when the boolean input isTrue. - image_b (
IMAGE, required): Second input image. This image is forwarded when the boolean input isFalse. - boolean (
BOOLEAN, required, default:False): Controls which input image is selected. Set toTrueto outputimage_a; set toFalseto outputimage_b.
Outputs
- IMAGE: The selected image. The output is a direct passthrough of either
image_aorimage_b, preserving the resolution, batch size, and other image properties.
Usage Notes
Both image inputs are required, so connect both candidates even if you are only switching between two sources. The boolean input can be driven by logic nodes, comparisons, or any other node that produces a boolean value, allowing the selected image to change dynamically during execution. Since the default value is False, the node will output image_b when the boolean widget is left at its default state.
Comments
Sign in with GitHub to join the discussion.