Nodes/ComfyUI_to_webui/🔢Integer Input (Hua)
ComfyUI Node

🔢Integer Input (Hua)

The integer knob your packaged workflow hands to the user

By kungful·Created 2 years ago·Updated 8 months ago· 25
🔢Integer Input (Hua)
    • INT
    int_value0
    nameIntInput

    HuaIntNode (🔢Integer Input (Hua)) is the integer sibling of the pack's float input: an INT in, the same INT out, and one number field in your Gradio webui per instance, labeled with the name you set. It's how you let the person running your packaged workflow change things like step counts, batch size, or a multiplier without ever seeing a node.

    The mechanism is a pure pass-through - int_value enters, an INT leaves, and the frontend writes whatever the user typed back into this node before the run fires. The range mirrors the float node's anything-goes attitude: −9999999999 to 9999999999, step 1, so you're not boxed in by the defaults. The node itself has zero logic; all of its value lives in the class-name hook that makes the webui render a field for it.

    Inputs:

    • int_value - the integer, default 0.
    • name - the label shown in the frontend. This is the one you'll edit, so the field reads "Steps" instead of "IntInput".

    Output: INT. Wire it into anything that takes a whole number - sampler steps, a resolution multiplier, seed, LoRA count logic, a batch repeat.

    Install: ComfyUI Manager → "ComfyUI_to_webui", or

    cd ComfyUI/custom_nodes
    git clone https://github.com/kungful/ComfyUI_to_webui.git
    

    restart, done. No models or extra downloads; the webui comes up at http://127.0.0.1:7861 once a workflow's API JSON is auto-saved by running it once in ComfyUI.

    Two things worth knowing before you pepper a graph with these. First, they count toward the same max_dynamic_components budget (default 5) as the float, prompt, and LoRA components - the cap is shared across all dynamic fields, so a workflow with 3 ints, 3 floats, and 3 prompts can hit the ceiling fast. Second, the webui renders these as number boxes, not sliders; the display: "number" hint in the schema means no drag-to-adjust, just type a value. If you want a slider in the UI, you're out of luck with this pack's components as shipped. It's a minor gripe, and for most packaging jobs (steps, seed offsets, counts) a plain number field is exactly right.

    Category❤️ 靓仔 ✨

    Inputs (2)

    NameTypeDefaultDescription
    int_valueINT0-9999999999–9999999999输入一个整数
    nameSTRINGIntInput节点名称

    Outputs (1)

    NameTypeDescription
    INTINT