Nodes/ComfyUI-LogicUtils/Static Number Int
ComfyUI Node

Static Number Int

Static Number Int (StaticNumberInt) — ComfyUI-LogicUtils

By aria1th·Created 3 years ago·Updated 7 months ago· 116
Static Number Int
    • INT
    number0

    Static Number Int is a constant. You set a whole number in the node, and it outputs that number, forever, until you change it. That's the entire node, and if it sounds too simple to bother with, the point isn't the value, it's having one labeled place to set it.

    Here's the use case that makes it click. You've got a number you use in five different spots across a workflow, a resolution, a step count, some magic constant. Type it into five fields and you now have five places to update, and one you'll forget. Put it in a Static Number Int once and wire that output to all five, and there's a single source of truth. Change the node, everything downstream updates together. It's the difference between a magic number scattered through your graph and a named constant, and anyone who's had to hunt down "wait, why is one of these still 512" appreciates it.

    It comes from ComfyUI-LogicUtils, aria1th's utility pack. aria1th is the handle behind AngelBottomless, the trainer who built Illustrious XL, and the pack is his personal toolkit, which is why it's full of small primitives like this alongside the heavier stuff.

    Inputs and outputs

    One input, number, an INT with a default of 0. One output, an INT, which is that number. There's nothing else to it. You type a value, it emits that value.

    Wire the output anywhere an integer is wanted: a sampler's steps, a latent's width or height, a batch size, or into the math nodes in this same pack as a fixed operand.

    Installing it

    • ComfyUI Manager: search "ComfyUI-LogicUtils" in Custom Nodes Manager, install, restart.
    • Manual: cd ComfyUI/custom_nodes && git clone https://github.com/aria1th/ComfyUI-LogicUtils, then restart.

    No models, no dependencies worth mentioning. The pack's optional auto-installer only runs if you set COMFYUI_LOGICUTILS_AUTO_INSTALL=1 (disable with COMFYUI_LOGICUTILS_SKIP_INSTALL=1), and a constant needs none of it.

    Honest note

    Modern ComfyUI has a built-in primitive node that can also emit an integer, so Static Number Int isn't the only way to get a fixed number onto a wire. What you're getting from this one is a small, self-contained, clearly-labeled constant that lives in this pack alongside the math and logic nodes you're probably already using, which keeps everything in one family. If you've already got the pack installed for its other nodes, it's a perfectly clean way to define a reusable value.

    There's genuinely nothing to troubleshoot here. It outputs a number. The only "gotcha" is remembering that its whole value is centralization: use it to define a number once and wire it everywhere, not to sprinkle more constants around. Used that way, it makes a graph noticeably easier to maintain.

    CategoryLogic Gates

    Inputs (1)

    NameTypeDefaultDescription
    numberINT0

    Outputs (1)

    NameTypeDescription
    INTINT