ComfyUI  >  Nodes  >  Comfyroll Studio >  🔀 CR Image Input Switch

ComfyUI Node: 🔀 CR Image Input Switch

Class Name

CR Image Input Switch

Category
🧩 Comfyroll Studio/🛠️ Utils/🔀 Logic
Author
Suzie1 (Account age: 2158 days)
Extension
Comfyroll Studio
Latest Updated
6/5/2024
Github Stars
0.5K

How to Install Comfyroll Studio

Install this extension via the ComfyUI Manager by searching for  Comfyroll Studio
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyroll Studio in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🔀 CR Image Input Switch Description

Automate image input selection based on conditions for efficient workflow in image processing tasks.

🔀 CR Image Input Switch:

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.

🔀 CR Image Input Switch Input Parameters:

Input

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.

image1

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.

image2

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.

🔀 CR Image Input Switch Output Parameters:

IMAGE

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.

show_help

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.

🔀 CR Image Input Switch Usage Tips:

  • Use the Input parameter to dynamically switch between different image sources in your workflow, which can save time and reduce manual intervention.
  • Ensure that both image1 and image2 are properly defined and available to avoid unexpected results or errors.

🔀 CR Image Input Switch Common Errors and Solutions:

Missing image input

  • Explanation: One or both of the image inputs (image1 or image2) are not provided.
  • Solution: Ensure that you have specified both 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.

Invalid Input value

  • Explanation: The Input parameter is set to a value outside the allowed range (1 or 2).
  • Solution: Adjust the Input parameter to be either 1 or 2, as these are the only valid values for this node.

🔀 CR Image Input Switch Related Nodes

Go back to the extension to check out more related nodes.
Comfyroll Studio
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.