Image Switch [RvTools]:
The Image Switch [RvTools] node is designed to facilitate the dynamic selection between two image inputs based on a specified condition. This node is particularly useful in workflows where you need to toggle between different image sources or outputs, allowing for greater flexibility and control in image processing tasks. By providing a simple mechanism to switch between images, it enhances the efficiency of your workflow, enabling you to easily manage and manipulate image data without the need for complex conditional logic. The primary goal of this node is to streamline the process of image selection, making it an essential tool for AI artists who require a straightforward method to alternate between image inputs.
Image Switch [RvTools] Input Parameters:
Input
The Input parameter is an integer that determines which image input will be selected and returned by the node. It accepts values of either 1 or 2, with a default value of 1. When set to 1, the node will output the first image input (input1), and when set to 2, it will output the second image input (input2). This parameter is crucial for directing the node to choose the desired image input, thereby influencing the node's execution and the resulting output.
input1
The input1 parameter is an optional image input that serves as one of the potential sources for the node's output. It is marked with forceInput: True, indicating that an image must be provided if this input is to be used. This parameter allows you to specify the first image that can be selected based on the Input parameter's value.
input2
Similar to input1, the input2 parameter is an optional image input that acts as the second potential source for the node's output. It also requires an image to be provided if it is to be utilized, as indicated by forceInput: True. This parameter allows you to specify the second image that can be selected based on the Input parameter's value.
Image Switch [RvTools] Output Parameters:
image
The image output parameter represents the selected image based on the Input parameter's value. It is the final output of the node, providing the image that corresponds to the chosen input. This output is essential for continuing the workflow with the selected image, enabling further processing or manipulation as needed.
Image Switch [RvTools] Usage Tips:
- Ensure that both
input1andinput2are provided with valid images to avoid unexpected results or errors. - Use the
Inputparameter to dynamically switch between images in your workflow, allowing for flexible image processing based on different conditions or requirements.
Image Switch [RvTools] Common Errors and Solutions:
Missing Input: Image Switch has no active Input.
- Explanation: This error occurs when neither
input1norinput2is provided, leaving the node without an active image input to select from. - Solution: Ensure that at least one of the image inputs (
input1orinput2) is supplied with a valid image to prevent this error.
