basicIn_input
Type one value, get it back as int, float, and string at once
- int
- float
- string
Most primitive nodes in ComfyUI commit to one type: an int node gives you an int, a string node gives you a string. basicIn_input doesn't bother choosing - you type a value into one multiline text box, and it hands you back three outputs simultaneously: int, float, and string. If three different downstream nodes want the same value but each insists on its own type, this is the node that saves you from maintaining three separate widgets that are supposed to stay in sync but eventually won't.
What it does and when to reach for it
One field, input, a multiline STRING defaulting to empty. Whatever text you put in gets parsed three ways at once and emitted as int, float, and string in parallel. This is the most generically useful of this pack's IO_Port family for exactly that reason - you don't have to know in advance which type a given downstream node wants. Set a value once, wire whichever output type each consumer actually needs, and you've got one source of truth instead of three.
The inputs and outputs that matter
input is the only thing you touch. All three outputs come from the same typed-in value: int (parsed as a whole number), float (parsed with decimal precision), string (the text, unmodified). Wire whichever pair or trio you actually need - you're not obligated to use all three just because they're all populated.
How it's different from basicIn_int and basicIn_float
Those two nodes each commit to a single output type - basicIn_int gives you a clamped whole number, basicIn_float gives you a free-typed decimal. This node is the one to reach for when you genuinely don't know yet which type the far end of the wire wants, or when you're building a workflow someone else will extend later and don't want to guess for them. The cost is exactly what you'd expect: no clamping on any of the three outputs, since the node has to accept whatever you type and coerce it three different ways rather than validating for one specific type up front.
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 on Linux/Mac), restart. No models, no extra dependencies.
Common issues
The obvious trap: type something that isn't a clean number - a word, a stray comma, extra whitespace from a paste - and the int/float outputs will fail to parse at execution time even though the string output would've been perfectly fine. If you're only actually using the string output for a given wire, that's not a real problem; if you need all three simultaneously, keep the input strictly numeric.
Separately, and worth knowing before you install anything from this pack at all: it's a small, single-maintainer project (translated from a Chinese-language README, with a linked Bilibili channel) that at least one user has seen throw an IMPORT FAILED line in the ComfyUI startup console. That's not specific to this node - it's a pack-wide install risk, and the fix is the same every time: rerun install.bat (or pip install -r requirements.txt by hand) to pick up whatever dependency got skipped, then do a full restart rather than just reloading the page.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| input | STRING | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| int | INT | — |
| float | FLOAT | — |
| string | STRING | — |