ComfyUI > Nodes > ComfyUI-RvTools_v2 > Sampler Switch

ComfyUI Node: Sampler Switch

Class Name

Sampler Switch [RvTools]

Category
🫦 RvTools II/ DEPRECATED
Author
r-vage (Account age: 317days)
Extension
ComfyUI-RvTools_v2
Latest Updated
2026-03-27
Github Stars
0.02K

How to Install ComfyUI-RvTools_v2

Install this extension via the ComfyUI Manager by searching for ComfyUI-RvTools_v2
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-RvTools_v2 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Sampler Switch Description

Facilitates dynamic selection between two input samplers based on specified conditions.

Sampler Switch [RvTools]:

The Sampler Switch [RvTools] node is designed to facilitate the selection between two different input samplers within a workflow. This node acts as a decision-making tool, allowing you to dynamically choose which sampler to use based on a specified input condition. Its primary purpose is to streamline the process of switching between different sampling methods, which can be particularly useful in scenarios where different samplers yield varying results or are better suited for specific tasks. By providing a simple mechanism to toggle between inputs, the Sampler Switch enhances flexibility and efficiency in managing sampling strategies, making it an essential component for AI artists looking to optimize their creative processes.

Sampler Switch [RvTools] Input Parameters:

Input

The Input parameter is an integer that determines which of the two provided inputs 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 return the first input (input1), and when set to 2, it will return the second input (input2). This parameter is crucial for directing the node's execution path and allows for dynamic switching between different sampler configurations based on your needs.

input1

The input1 parameter is an optional input that can accept any type of data. It is one of the two potential inputs that the node can select from, and it is required to be provided if the Input parameter is set to 1. This parameter allows you to specify the first sampler or configuration that you want to be considered for selection.

input2

The input2 parameter is another optional input that can accept any type of data. Similar to input1, it is one of the two potential inputs that the node can select from, and it is required to be provided if the Input parameter is set to 2. This parameter allows you to specify the second sampler or configuration that you want to be considered for selection.

Sampler Switch [RvTools] Output Parameters:

sampler_name

The sampler_name output parameter represents the selected sampler based on the Input parameter's value. It outputs the name of the sampler that was chosen, either from input1 or input2. This output is crucial for subsequent nodes in the workflow that require a specific sampler configuration to proceed, ensuring that the correct sampling method is applied to the task at hand.

Sampler Switch [RvTools] Usage Tips:

  • Ensure that both input1 and input2 are properly configured and contain valid sampler data before executing the node to avoid unexpected results.
  • Use the Input parameter to dynamically switch between different sampling strategies based on the requirements of your project, allowing for greater flexibility and adaptability in your workflow.

Sampler Switch [RvTools] Common Errors and Solutions:

MissingInputError

  • Explanation: This error occurs when one or both of the optional inputs (input1 or input2) are not provided, but the Input parameter is set to select them.
  • Solution: Ensure that both input1 and input2 are supplied with valid data before executing the node, especially if the Input parameter is set to select one of them.

InvalidInputValueError

  • Explanation: This error arises when the Input parameter is set to a value outside the allowed range of 1 to 2.
  • Solution: Verify that the Input parameter is set to either 1 or 2, as these are the only valid values for selecting between the two inputs.

Sampler Switch Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-RvTools_v2
RunComfy
Copyright 2025 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 Models, enabling artists to harness the latest AI tools to create incredible art.

Sampler Switch