ID Select
The memo pad that doubles as a prompt switcher
- id
ID Select is the odd one out in the Prompt String Selector pack: it outputs no prompt text at all. It's a single integer with a memo attached. Which sounds useless until you realize what the pack is doing with ids.
Remember how every selector in this pack outputs a number - the leading digits of whatever file you picked? That number is the pack's control surface. ID Select is the manual control for the same surface. Set it to 3, and it hands your graph the integer 3; feed that into one of the pack's Prompt Switch nodes and the switch routes to text_03. What you've built is a prompt that's switchable by number instead of by dropdown, which is exactly what you want when you're scripting, batching, or toggling options mid-workflow without opening a dropdown.
How it works
Two inputs, one output, no hidden logic:
- id - an integer from 1 to 999,999 (default 1). This is the whole job.
- memo - a free-text multiline field that is not used by anything. It's your sticky note, sitting on the node so a workflow doesn't silently become a wall of unlabeled integers.
Output: id (INT), the number you typed. That's the entire node. In the author's words it exists for "numerical input and memos," and it does not overreach.
Why you'd bother
Two genuinely useful patterns. First: pair it with a Prompt Switch (the pack ships 5/10/20-input versions) to pick a prompt block by number from the graph - you can even hook the ID to a widget or a schedule instead of a dropdown. Second: the memo field is quietly great for keeping track of which setting is which. Sticking "character 2, chibi, summer outfit" on the node beats decoding three opaque integers later.
The pack's own sample workflow uses exactly this shape: an ID Select feeding a Prompt Switch, with the switch's output aggregated together with a couple of selectors. It's the control-room node of the whole design.
Install
ComfyUI Manager → search "Prompt String Selector", or:
cd ComfyUI/custom_nodes
git clone https://github.com/itom0717/ComfyUI-Prompt-String-Selector.git
Restart. No dependencies, no models - pure Python standard library.
Gotchas
The id input has no validation against what your switch actually supports. Set it to 15 on a 10-input Prompt Switch and the switch quietly outputs an empty string for the missing pin. The pack treats that as "no selection," not an error, so check your numbers. And remember the memo is for humans only - it's not wired to anything, so don't expect it to follow values around.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| id | INT | 11–999999 | — |
| memo | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| id | INT | — |