Nodes/ComfyUI-RvTools_v2/Integer Switch
ComfyUI Node

Integer Switch

A 1-or-2 toggle for steps, batch sizes, and every other whole number

By r-vage·Created about a year ago·Updated 5 months ago· 23
Integer Switch
    • int
    Input1
    input1
    input2

    The Integer Switch is the pack's two-position toggle applied to whole numbers: Input 1 or 2 picks input1 or input2, and the chosen INT comes out of the int output. It's the node for the classic "quick draft vs. final render" problem - 20 steps when you're iterating, 50 when you're committing - or for switching a batch size, a seed's integer feed, or a CFG step counter.

    How to actually use it

    Wire two preset integers into the switch (the pack's own Integer primitive works perfectly for this) and route the output to the KSampler's steps port, an Empty Latent's batch size, or anywhere else an INT is expected. Moving the Input widget from 1 to 2 flips the value - that's the entire interaction, and it's the fastest A/B you'll get for "does more sampling actually help here?"

    The inputs are forceInput, so the values must come from upstream nodes rather than being typed in. That's by design: the switch is routing wired integers, so the same presets can be shared across multiple consumers, and you can chain switches (draft settings on slot 1, final settings on slot 2 of a higher-level switch).

    The pack-wide convention from the README applies: if the switch node is bypassed (not muted), it sends whatever's on input1. Bypass means "default to slot 1", so the value you want in the default case belongs there. And unlike the multi-switches, this one doesn't guard against empty inputs - if both slots are unwired it hands back None with no complaint, so wire it properly.

    What's on the node

    • Input - the 1-or-2 selector widget.
    • input1 / input2 - optional INT inputs, wire-only.
    • int output - the chosen INT.

    Install

    cd ComfyUI/custom_nodes
    git clone https://github.com/r-vage/ComfyUI-RvTools_v2
    # restart ComfyUI
    

    Or search "ComfyUI-RvTools_v2" in ComfyUI Manager. No models; deps are the pack's standard torch/numpy/Pillow/opencv-python/pilgram.

    The pack caveat

    The README flags RvTools v2 as unmaintained and recommends ComfyUI_Eclipse as the successor. History worth knowing: the original RvTools repo was pulled from GitHub in early 2025, breaking shared workflows and spawning a "can anyone re-share RvTools?" thread on r/comfyui. v2 installs cleanly and is what those legacy workflows expect. For new builds, Eclipse is where the author took these tools.

    Category🫦 RvTools II/ Switches

    Inputs (3)

    NameTypeDefaultDescription
    InputINT11–2
    input1optINT
    input2optINT

    Outputs (1)

    NameTypeDescription
    intINT