Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile data routing tool with SWITCH, PASSTHROUGH, CYCLE, SORT, and REVERSE modes for dynamic workflow management.
The UniversalSwitch node is a versatile tool designed to manage and route data dynamically within your workflow. It allows you to control the flow of data through various modes such as SWITCH, PASSTHROUGH, CYCLE, SORT, and REVERSE, making it highly adaptable to different scenarios. This node is particularly useful when you need to conditionally forward data to different parts of your workflow based on specific criteria or when you want to cycle through multiple data inputs. By providing a flexible mechanism to handle multiple inputs and outputs, the UniversalSwitch node helps streamline complex workflows and ensures that data is processed efficiently and effectively.
This is the primary input slot for the UniversalSwitch node. It accepts any type of data and is used to forward data through the UniversalSwitch. The data type is flexible, allowing you to connect various types of nodes to this input.
This parameter determines the mode of operation for the UniversalSwitch. The available options are SWITCH, PASSTHROUGH, CYCLE, SORT, and REVERSE. Each mode defines a different way of selecting and forwarding inputs to outputs. For example, SWITCH mode allows you to select a specific input to forward, while CYCLE mode cycles through the inputs sequentially.
This parameter specifies which input slot to select from. It accepts an integer value with a default of 1. The minimum value is -1, and the maximum value is determined by the maximum number of slots. A value of 0 means auto-selection, and -1 means all inputs are selected.
This parameter specifies which output slot to transmit data to. Similar to selection_in, it accepts an integer value with a default of 1. The minimum value is -1, and the maximum value is determined by the maximum number of slots. A value of 0 means auto-selection, and -1 means all outputs are selected.
This boolean parameter, currently unimplemented, is intended to match input types to their relative outputs. It has a default value of False and is used to ensure type validation between inputs and outputs.
These are additional optional input slots that can be used to forward data through the UniversalSwitch. Each slot accepts any type of data and is dynamically added based on the maximum number of slots configured.
These are the output slots of the UniversalSwitch node. Each slot corresponds to an input slot and forwards the data based on the selected mode and input/output selection parameters. The outputs are dynamically named and can handle any type of data, making them highly flexible for various workflow requirements.
© Copyright 2024 RunComfy. All Rights Reserved.