ComfyUI Node Runs on cloud

Eden_Int

A constant and a type-lock in one β€” the unglamorous node that keeps your graph honest

By edenartlabΒ·Created 3 years agoΒ·Updated 6 months agoΒ· 119
Eden_Int
    • INT
    β—„value0β–Ί

    Eden_Int is a number you can hold in your hand. You type an integer, it outputs that integer as an INT-typed value. No math, no conversion, no state - it's a constant box, the ComfyUI equivalent of writing 42 in your code and calling it a variable.

    That sounds too trivial to justify a node, and in most graphs it is. But there are two situations where a bare INT constant is exactly what you want. First, when you want one number wired into a dozen places and you want to change it once, in one spot, instead of editing twelve widgets. Second - the sneaky one - when you need to force a value to behave as an INT type. ComfyUI is loosely typed at the socket level but not always happy about it; some nodes accept a number and some accept only the int flavor, and a constant node like this is the clean way to pin the type.

    Inputs and outputs

    • value (INT, default 0) - accepts the full 64-bit range, so it'll hold any sensible step count, seed, or dimension you throw at it.
    • Output INT - the value, passed straight through via return (value,).

    That's the complete schema. It's a one-input, one-output passthrough.

    Where it fits

    In the Eden pack it lives under the Logic category, next to Eden_Float, Eden_Bool, and the string constants - the pack's answer to "I need a typed value at a fixed spot in my graph." It pairs naturally with the same suite's comparison and branching nodes: pin a threshold with Eden_Int, compare against a computed value, branch. And if you ever want the value to vary, that's what Eden_RandomNumberSampler is for - this node is the deterministic sibling.

    Installing it

    Part of the Eden.art nodesuite (edenartlab/eden_comfy_pipelines). Easiest via ComfyUI Manager - search "Eden.art nodesuite" - or manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/edenartlab/eden_comfy_pipelines
    cd eden_comfy_pipelines && pip install -r requirements.txt
    

    Restart ComfyUI. Note the pack's requirements list is heavy (CLIP interrogator, transformers, opencv, and friends), so installing the whole suite to use one constant is real overhead - if you only want Eden's logic nodes, that's still how the pack works, there's no lite install.

    Common issues

    There's basically nothing to break. The one thing to keep in mind: it's an integer constant. If you wire a float into value the node doesn't round for you - use Eden_FloatToInt if you're coming from a computed float, or feed a whole number and you're fine. A constant that changes value mid-run also won't do anything clever; it's static until you edit it, which is the feature, not a bug.

    CategoryEden 🌱/Logic

    Inputs (1)

    NameTypeDefaultDescription
    valueINT0-9223372036854776000–9223372036854776000β€”

    Outputs (1)

    NameTypeDescription
    INTINTβ€”