basicIn_int
The plain integer box this pack builds everything else on
- int
There's no trick here, and that's the point. basicIn_int is a single number field - an actual numeric widget this time, not a text box like its float sibling in this same pack - with a range from 0 to 16384 and an output you wire wherever an integer is needed. It exists in this pack's IO_Port family for the same reason a dozen other single-value primitives do: so a number that matters to several downstream nodes lives in exactly one place.
What it is
One required field, input, a proper INT widget (min 0, max 16384, step 1) - the kind you'd drag or click the arrows on, not type freely into. One output, int, matching the value you set. That range comfortably covers things like resolution dimensions, frame counts, and steps - the kinds of integers that show up constantly in a diffusion workflow - without letting you accidentally type something wildly out of bounds the way a free-text field would.
Why it's worth using deliberately
The "set once, wire everywhere" pattern is the whole design philosophy behind this pack's IO_Port category, and it matters most for exactly the kind of value this node holds: dimensions and counts that multiple nodes downstream need to agree on. Change a width in one place and every node reading from this output updates together - no hunting through the graph for the three other places you typed the same number and might have missed one.
basicIn_int vs. basicIn_float
Worth being deliberate about which of the two you pick. This node's input field is a real numeric widget - clamped 0 to 16384, no way to type garbage into it, but also no fractional values and no negatives. Its sibling basicIn_float swaps that for a free-text box: no clamping, decimals welcome, but also no protection against typing something that doesn't parse. If the value you're holding is a whole number in a sane range - a step count, a width, a batch size - this node's the safer choice specifically because it can't be wrong. Save the free-text float node for values that genuinely need fractional precision or a range this widget doesn't cover.
Installing it
Search "ComfyUI-Apt_Preset" in ComfyUI Manager, or:
cd ComfyUI/custom_nodes
git clone https://github.com/cardenluo/ComfyUI-Apt_Preset.git
Run install.bat on Windows (pip install -r requirements.txt elsewhere), restart ComfyUI. Nothing to download.
Common issues
Genuinely, not much to go wrong - that's the honest assessment for a bounded numeric widget. The one thing worth flagging: the max is 16384, which is generous for most uses but is a real ceiling if you're trying to feed something like a very large batch count or an unusual frame total through it. If a value you need doesn't fit in that range, this specific node isn't the right primitive - you'd want a node with a wider (or unbounded) integer field instead. And if you're reaching for fractional precision rather than a whole number, don't fight this node for it; this pack's basicIn_float (a free-text field parsed as a float) is the one built for that.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| input | INT | 0–16384 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| int | INT | — |