Visit ComfyUI Online for ready-to-use ComfyUI environment
Automate image input selection based on conditions for efficient workflow in image processing tasks.
The CR Image Input Switch node is designed to streamline your workflow by allowing you to dynamically select between two different image inputs based on a specified condition. This node is particularly useful when you need to toggle between different image sources without manually changing the input each time. By automating the selection process, it enhances efficiency and flexibility in your image processing tasks, ensuring that the appropriate image is used based on the given input parameter. This node is ideal for scenarios where conditional image selection is required, such as in complex image processing pipelines or automated workflows.
The Input
parameter determines which image input will be selected. It accepts an integer value with a default of 1, a minimum of 1, and a maximum of 2. When set to 1, the node will select image1
; when set to 2, it will select image2
. This parameter is crucial for directing the node to choose the correct image input based on your workflow requirements.
The image1
parameter is an optional input that accepts an image. This image will be selected if the Input
parameter is set to 1. It allows you to specify the first image option for the node to choose from.
The image2
parameter is an optional input that accepts an image. This image will be selected if the Input
parameter is set to 2. It allows you to specify the second image option for the node to choose from.
The IMAGE
output parameter provides the selected image based on the Input
parameter. If Input
is set to 1, image1
will be output; if Input
is set to 2, image2
will be output. This output is essential for passing the chosen image to subsequent nodes in your workflow.
The show_help
output parameter returns a URL string that directs you to the documentation for the CR Image Input Switch node. This URL provides additional information and guidance on using the node effectively.
Input
parameter to dynamically switch between different image sources in your workflow, which can save time and reduce manual intervention.image1
and image2
are properly defined and available to avoid unexpected results or errors.image1
or image2
) are not provided.image1
and image2
if you plan to switch between them. If only one image is needed, make sure the Input
parameter is set correctly to select the available image.Input
parameter is set to a value outside the allowed range (1 or 2).Input
parameter to be either 1 or 2, as these are the only valid values for this node.© Copyright 2024 RunComfy. All Rights Reserved.