ComfyUI > Nodes > ComfyUI-Interactive > Interactive Switch (with parameters)

ComfyUI Node: Interactive Switch (with parameters)

Class Name

InteractiveSwitchWithParameters

Category
interactive
Author
lquesada (Account age: 4280days)
Extension
ComfyUI-Interactive
Latest Updated
2024-11-23
Github Stars
0.03K

How to Install ComfyUI-Interactive

Install this extension via the ComfyUI Manager by searching for ComfyUI-Interactive
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Interactive 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

Interactive Switch (with parameters) Description

Facilitates dynamic parameter switching for interactive workflows, enhancing flexibility and responsiveness.

Interactive Switch (with parameters):

The InteractiveSwitchWithParameters node is designed to facilitate dynamic decision-making within a workflow by allowing you to switch between different sets of parameters interactively. This node is particularly useful in scenarios where you need to toggle between various configurations or inputs based on specific conditions or user interactions. By integrating this node into your workflow, you can enhance the flexibility and responsiveness of your interactive applications, making it easier to adapt to changing requirements or user preferences. The primary goal of this node is to streamline the process of managing multiple parameter sets, thereby improving the efficiency and effectiveness of your interactive systems.

Interactive Switch (with parameters) Input Parameters:

propagate_deselect

This parameter is a boolean that determines whether the deselection of options should be propagated throughout the workflow. When set to True, it ensures that any deselection action is communicated to all relevant parts of the system, maintaining consistency across the workflow. The default value is True, and it does not have minimum or maximum values as it is a boolean.

selected

The selected parameter is a boolean that indicates whether a particular option or set of parameters is currently selected. This parameter is crucial for determining the active configuration within the node. The default value is False, and similar to propagate_deselect, it does not have minimum or maximum values.

images

This optional parameter accepts image inputs that can be used within the node's operations. It allows you to provide visual data that may influence the node's decision-making process or output generation.

parameter_latent

An optional parameter that accepts latent data inputs. This can be used to provide additional context or information that the node can utilize in its processing.

parameter_mask

This optional parameter allows you to input mask data, which can be used to define specific areas of interest or focus within the images or other data being processed by the node.

parameter_string

The parameter_string is an optional string input that can be forced into the node. It allows you to provide textual data or commands that may affect the node's behavior or output.

parameter_int

An optional integer input that can be forced into the node, allowing you to provide numerical data that may influence the node's operations or results.

parameter_float

This optional parameter accepts floating-point numbers as input, which can be used to provide precise numerical data for the node's processing.

Interactive Switch (with parameters) Output Parameters:

selector

The selector output parameter is an interactive image type that represents the selected configuration or set of parameters. This output is crucial for understanding which parameters are currently active and how they influence the overall workflow. It provides a visual representation of the node's decision-making process, allowing you to easily interpret and adjust the configuration as needed.

Interactive Switch (with parameters) Usage Tips:

  • Utilize the propagate_deselect parameter to maintain consistency across your workflow when options are deselected, ensuring that all parts of the system are updated accordingly.
  • Use the selected parameter to quickly toggle between different parameter sets, allowing for rapid adjustments and testing of various configurations.
  • Leverage the optional parameters like images, parameter_latent, and parameter_mask to provide additional context and data that can enhance the node's decision-making capabilities.

Interactive Switch (with parameters) Common Errors and Solutions:

Error obtaining current_prompt workflow. This may still work.

  • Explanation: This error occurs when the node is unable to retrieve the current prompt's workflow data, which may affect its ability to function correctly.
  • Solution: Ensure that the workflow data is correctly formatted and accessible. Check for any issues in the data source or connections that may be preventing the node from accessing the necessary information.

Interactive Switch (with parameters) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Interactive
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. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.