ComfyUI > Nodes > ComfyUI-RvTools_v2 > Sampler Switch (Restart)

ComfyUI Node: Sampler Switch (Restart)

Class Name

Sampler Switch (Restart) [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 (Restart) Description

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

Sampler Switch (Restart) [RvTools]:

The Sampler Switch (Restart) [RvTools] node is designed to facilitate the dynamic selection between two different input samplers based on a specified condition. This node is particularly useful in scenarios where you need to switch between different sampling methods during the execution of a process, allowing for greater flexibility and control over the sampling strategy. By providing a mechanism to choose between two inputs, this node helps streamline workflows that require conditional logic to determine the most appropriate sampler to use. This capability is especially beneficial in complex AI art generation tasks where different samplers may yield varying results, and the ability to switch between them can enhance the creative process.

Sampler Switch (Restart) [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 controlling the flow of data through the node, allowing you to dynamically choose between different sampling strategies based on your specific needs.

input1

The input1 parameter is an optional input that represents the first sampler option. It can accept any type of data, and it is required to be provided if the Input parameter is set to 1. This input serves as one of the potential samplers that the node can switch to, providing flexibility in selecting the appropriate sampling method for your task.

input2

The input2 parameter is an optional input that represents the second sampler option. Similar to input1, it can accept any type of data and must be provided if the Input parameter is set to 2. This input offers an alternative sampler choice, enabling you to switch between different sampling methods as needed.

Sampler Switch (Restart) [RvTools] Output Parameters:

sampler_name

The sampler_name output parameter returns the name of the selected sampler based on the Input parameter's value. This output is crucial for identifying which sampler has been chosen and is being used in the subsequent processing steps. By providing the name of the selected sampler, this output helps ensure transparency and traceability in your workflow, allowing you to understand and document the sampling strategy employed.

Sampler Switch (Restart) [RvTools] Usage Tips:

  • Use the Input parameter to dynamically switch between different sampling methods based on specific conditions or criteria in your workflow.
  • Ensure that both input1 and input2 are properly configured and available, as the node will require one of them to be selected based on the Input parameter's value.

Sampler Switch (Restart) [RvTools] Common Errors and Solutions:

Missing required input

  • Explanation: This error occurs when the node is executed without providing the necessary input for the selected Input parameter value.
  • Solution: Ensure that the appropriate input (input1 or input2) is provided based on the value of the Input parameter. If Input is set to 1, make sure input1 is available; if set to 2, ensure input2 is provided.

Invalid Input value

  • Explanation: This error arises when the Input parameter is set to a value outside the allowed range of 1 to 2.
  • Solution: Adjust the Input parameter to a valid value, either 1 or 2, to ensure the node can correctly select between the two inputs.

Sampler Switch (Restart) 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 (Restart)