Nodes/comfyui-AGSoft/🔢AGSoft Integer
ComfyUI Node

🔢AGSoft Integer

The world's simplest integer node — and why it's in the pack

By Art-xmaster·Created 12 months ago·Updated a day ago· 23
🔢AGSoft Integer
    • int
    value0

    Let's be honest about what this is: a node with one integer input and one integer output. AGSoft Integer takes a number between -1,000,000 and 1,000,000 and passes it through. That's it. No math, no conversion, no randomization. If you've used ComfyUI for more than an hour, you've already got an equivalent in the stock Primitive node - so why is this in the pack, and when would you bother?

    The honest answer: you use it when you want your graph to read clearly and when you're routing values through a workflow where a dedicated, named node is easier to spot than a primitive widget buried in a connection. There's also a subtler reason. This pack's loop nodes output lists of integers, and a lot of the ecosystem's nodes accept single integers. When you're building loops and need a stable, visible integer to feed a KSampler's seed or a control node's step count, having a dedicated node to drag around makes the graph legible in a way a bare widget isn't.

    What it does

    One input, value (INT, default 0, range ±1,000,000, step 1). One output, int (INT). Pass-through with no side effects. There's genuinely nothing to tune - it's a convenience node in the same spirit as the pack's 🔢 AGSoft Float and its math-expression sibling: simple building blocks so your workflow doesn't depend on invisible defaults.

    The practical thing to know: because it's a discrete node with its own output, it forces a specific integer value through your graph and makes it easy to edit from the node body instead of hunting for the primitive that feeds a distant node. When you're sharing a workflow or coming back to it weeks later, that's a small but real win.

    Installation

    It ships in comfyui-AGSoft:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Art-xmaster/comfyui-AGSoft.git
    # restart ComfyUI
    

    Or via ComfyUI Manager (search "comfyui-AGSoft"). No dependencies beyond the pack's numpy/opencv, no models.

    When you'd actually reach for it

    Honest guidance: if you're just setting a seed once, the stock Primitive is fine and this adds nothing. Reach for AGSoft Integer when you're building a reusable workflow or a loop where you want the value visible on the canvas as a named thing - pair it with the pack's AGSoft Loop Integer or Loop Fix Integer outputs, which produce lists you can't always drop straight into a single-int input. It's a tiny utility in a pack full of them, and its job is to make your graph legible, not to be clever.

    CategoryAGSoft/Math

    Inputs (1)

    NameTypeDefaultDescription
    valueINT0-1000000–1000000RU: Целое число. Диапазон от -1,000,000 до 1,000,000. EN: Integer value. Range from -1,000,000 to 1,000,000. Пример: 42, -7, 100500

    Outputs (1)

    NameTypeDescription
    intINT