Nodes/SeargeSDXL/Integer Constant
ComfyUI Node Runs on cloud

Integer Constant

A single number you can wire anywhere

By SeargeDP·Created 3 years ago·Updated 2 years ago· 874
Integer Constant
    • value
    value0

    About as simple as a ComfyUI node gets: you type a whole number, and it outputs that number. That's it. It's a labelled constant you can plug into any integer socket in the workflow.

    Why would you want a whole node just to hold a number? Because in a procedural graph, a single value often needs to reach several places at once - a resolution, a seed offset, a step count. Put it in one constant node and wire it out to all of them, and now there's exactly one place to change it. Change the constant, everything downstream updates. This node is part of the pack's older utility set (Searge/_deprecated_/Integers), the little building blocks Searge shipped for exactly this kind of wiring.

    How it works

    One widget, one output. You set value, and the node emits it as an INT. Anything that takes an integer - a width field, a math node, a step count - can read it. Think of it as a variable you define once and reference many times.

    The inputs and outputs that matter

    • value - the integer to hold and emit.
    • value (output) - the same number as an INT.

    There is genuinely nothing else to configure.

    When you'd use it

    This is workflow-authoring convenience, not something you place while just generating images. The classic case: you have a base dimension (say 1024) that feeds a latent, a hi-res calculation, and a couple of other nodes. Rather than typing 1024 in four places and forgetting one when you change it, you define it once here and fan it out. Combined with SeargeIntegerMath and SeargeIntegerScaler, you can build a small chain where one constant drives a whole set of derived numbers - which is the entire reason these integer helper nodes exist.

    If you're running the stock Searge workflow, you probably won't add this by hand; it's for people constructing or reworking graphs.

    How to install it

    ComfyUI Manager: search SeargeSDXL, install, restart. Manual: python -m pip install opencv-python in ComfyUI's Python env first (the pack requires OpenCV), then cd ComfyUI/custom_nodes && git clone https://github.com/SeargeDP/SeargeSDXL.git, restart. Windows portable has an installer script.

    No models - it's a number.

    Where people get burned

    • Over-engineering. If a value only goes to one place, you don't need a constant node - just type it there. This earns its keep when a number is shared, not otherwise.
    • Integer-only. It holds whole numbers. If you need a fractional multiplier (like a 1.5× scale factor), that's a float, and this isn't the node - look at SeargeIntegerScaler's factor instead.
    • It's deprecated plumbing. Fine to use, but it's from the older toolkit. For a brand-new workflow you may prefer ComfyUI's own primitive/constant nodes, which do the same thing outside this pack.
    CategorySearge/_deprecated_/Integers

    Inputs (1)

    NameTypeDefaultDescription
    valueINT00–18446744073709550000

    Outputs (1)

    NameTypeDescription
    valueINT