ComfyUI Node

Integer

A whole number as a wire — the unglamorous node that powers clean graphs

By r-vage·Created about a year ago·Updated 5 months ago· 23
Integer
    • int
    value1

    The Integer node is a single INT widget (default 1, step 1) with one output that echoes the value. If it reminds you of ComfyUI's built-in primitive, that's the point - this is the RvTools house version, made so the pack's own switches and settings have a native source of integer values. And for all its simplicity, it's quietly load-bearing in organized workflows.

    Why you want numbers as wires

    A widget on a node is a dead end - that value lives only inside that node. An integer that comes out of a node is a wire, and wires are how you make a graph maintainable:

    • One source, many consumers. Set the integer once, fan it to an Empty Latent's width, a resize node's target, and a switch - then edit one box instead of three.
    • Composable. Feed it into a math node or a loop counter and the result drives something else. It's a building block, not a terminal.
    • Force-input friendly. Many nodes (this pack's switches included) expose forceInput integer ports that can only be fed from another node. Something has to be that source. This is it.

    The float sibling exists in the same pack, and between them they cover the two primitive types that dominate every workflow. If you mostly click values into widgets, this node looks pointless; if you build graphs with shared settings, it's the difference between editing one number and editing ten.

    What's on the node

    • value - an INT widget, default 1, step 1, ranging over the full 64-bit integer space (so loops and counters won't hit a low ceiling).
    • int output - the value as an INT, wire-ready.

    No rounding, no clamping-to-nice-numbers, no tricks. It's a pass-through with a purpose.

    Install

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

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

    The pack caveat

    This whole pack wears an unmaintained banner in its README, which points to ComfyUI_Eclipse as the successor. And the RvTools name has a scarred history: the original repo was deleted from GitHub in early 2025, breaking workflows that referenced it and generating the standard "how do I reinstall RvTools?" thread on r/comfyui. v2 is the renamed, still-loading version. For a primitive node this trivial, migration is a non-event - but if a downloaded workflow asks for it, now you know which repo to clone.

    Category🫦 RvTools II/ Primitives

    Inputs (1)

    NameTypeDefaultDescription
    valueINT1-9223372036854776000–9223372036854776000

    Outputs (1)

    NameTypeDescription
    intINT