Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates dynamic switching between two sources based on specified mode for controlled alternation in outputs.
The chaosaiart_Any_Switch
node is designed to facilitate dynamic switching between two sources based on a specified mode. This node is particularly useful in scenarios where you need to alternate between different inputs in a controlled manner, such as in animation frames or iterative processes. By providing a flexible switching mechanism, it allows you to create more complex and varied outputs without manual intervention. The node can operate in two modes: "One Time: 1-2-2-2.." and "Switch: 1-2-1-2..", giving you the ability to choose the switching pattern that best suits your needs. This functionality is essential for AI artists looking to add variability and control to their workflows.
This parameter determines the switching pattern of the node. It has two options: "One Time: 1-2-2-2.." and "Switch: 1-2-1-2..". In the "One Time" mode, the node will output the first source once and then continuously output the second source. In the "Switch" mode, the node will alternate between the two sources with each execution. This allows you to control how the sources are alternated, providing flexibility in your workflow.
This is the first input source for the node. It can be of any type, making it versatile for various applications. The value of this source will be used based on the selected mode and the current state of the node.
This is the second input source for the node. Similar to source_1
, it can be of any type. The value of this source will be used based on the selected mode and the current state of the node.
This optional parameter allows you to reset the node's state. When set, it will restart the switching process according to the selected mode. This is useful if you need to reinitialize the switching sequence during your workflow.
This output provides a string containing information about the current state of the node, including which source is currently being output. This can be useful for debugging and understanding the node's behavior during execution.
This output provides the current source value based on the switching logic. It will be either the value of source_1
or source_2
, depending on the mode and the current state of the node. This allows you to dynamically switch between different inputs in your workflow.
restart
parameter to reset the switching sequence if you need to reinitialize the process at any point in your workflow.mode
parameter.mode
parameter is set to either "One Time: 1-2-2-2.." or "Switch: 1-2-1-2..".source_1
or source_2
) are not provided.source_1
and source_2
parameters.restart
parameter is not correctly set.restart
parameter is set correctly if you intend to use it. If not needed, you can omit this parameter.ยฉ Copyright 2024 RunComfy. All Rights Reserved.