Get Int Extra
Keep a number with the image, not in your head
- extras
- int
Get Int Extra reads an integer back out of an image's image_info extras. It's the numeric sibling of Get String Extra: a Set Int Extra upstream stashes a value under a key, and this node hands you the INT back so you can plug it straight into a steps, seed, or count socket. Boring in the best way - it's a typed getter, and its whole job is being boring so the rest of your workflow doesn't have to be.
Why you'd bother
ComfyUI wiring has a habit of leaving you with one number typed into five places, or worse, a value that's meaningful only if you remember what run it came from. The extras system gives that number a name and a home inside the image's metadata. Stash steps, a frame count, a repetition index, or a version number once via Set Int Extra, read it anywhere downstream with this node, and when the saved image comes back through Image Reader, the number comes back with it. That carry-it-forward behavior is the pack's core pitch: trial results survive into the next production pass.
The inputs and output
Two inputs, both familiar by now:
extras- theIPT-ImageInfoExtrassocket, typically theextrasoutput ofImage Info Contextor aSet*Extranode.key- the parameter-line key to look up. It has to match the key the writer used, exactly.
Output is float's sibling: a single int. If the key is missing or the stored value doesn't cast cleanly to an integer, you get None - so treat this node as "lookup, not guarantee" and keep a fallback in mind if the workflow can run without the extra.
The family
The pack ships one of these per type - Get String Extra, Get Float Extra, Get Int Extra, Get Size Extra, Get Margin Extra, Get Sampler Params Extra, Get Lora Stack Extra. They share the same key-based lookup and differ only in the cast. The int and float versions are the pair you'll actually reach for on a regular basis, because sampler parameters and sizes are the things you keep wanting to set once and reuse everywhere.
Installing it
Part of the ComfyUI-Info-Prompt-Toolkit pack. ComfyUI Manager - search "Info Prompt Toolkit" - or:
cd ComfyUI/custom_nodes
git clone https://github.com/kinorax/comfyui-info-prompt-toolkit.git
cd comfyui-info-prompt-toolkit
pip install -r requirements.txt
Restart ComfyUI. No model files required for this node. It's a small single-author pack (GPL-3.0), and honestly not one with a big community footprint yet - which means you're buying into its metadata conventions because you like the pattern, not because everyone's using it.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| key | STRING | Parameter line key | |
| extrasopt | IPT-ImageInfoExtras | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| int | INT | — |