ComfyUI Node
Random Text Index Switch V2
Combines random index generation with text selection. Generates an index based on the selected mode (Select: fixed value, Increment: cycling through range, Random: random within range, Range: selecting a range of indices) and uses it to select from up to 20 text inputs. Control how many sockets are visible on the node for cleaner layouts.
Random Text Index Switch V2
- text
- label
- index
- prefixed_label
◄minimum1►
◄maximum10►
◄modeRandom►
◄select1►
◄range1,2,5-8,12►
◄visible_inputs20►
◄text1►
◄text2►
◄text3►
◄text4►
◄text5►
◄text6►
◄text7►
◄text8►
◄text9►
◄text10►
◄text11►
◄text12►
◄text13►
◄text14►
◄text15►
◄text16►
◄text17►
◄text18►
◄text19►
◄text20►
CategoryAUN Nodes/Utility
Inputs (26)
| Name | Type | Default | Description |
|---|---|---|---|
| minimum | INT | 11–20 | The minimum index for selection (inclusive). |
| maximum | INT | 101–20 | The maximum index for selection (inclusive). |
| mode | COMBO | Random | Select mode: Select for fixed index, Increment for cycling through range, Random for random index within range, Range for selecting a range of indices. |
| select | INT | 11–20 | The fixed index value to output when in 'Select' mode. |
| range | STRING | 1,2,5-8,12 | A comma-separated list of indices or ranges to select from in 'Range' mode (e.g. 1, 2, 5-8, 12). |
| visible_inputs | INT | 202–20 | How many text input sockets to expose on the node (2-20). |
| text1opt | STRING | Text input 1. Only the selected index is output. | |
| text2opt | STRING | Text input 2. Only the selected index is output. | |
| text3opt | STRING | Text input 3. Only the selected index is output. | |
| text4opt | STRING | Text input 4. Only the selected index is output. | |
| text5opt | STRING | Text input 5. Only the selected index is output. | |
| text6opt | STRING | Text input 6. Only the selected index is output. | |
| text7opt | STRING | Text input 7. Only the selected index is output. | |
| text8opt | STRING | Text input 8. Only the selected index is output. | |
| text9opt | STRING | Text input 9. Only the selected index is output. | |
| text10opt | STRING | Text input 10. Only the selected index is output. | |
| text11opt | STRING | Text input 11. Only the selected index is output. | |
| text12opt | STRING | Text input 12. Only the selected index is output. | |
| text13opt | STRING | Text input 13. Only the selected index is output. | |
| text14opt | STRING | Text input 14. Only the selected index is output. | |
| text15opt | STRING | Text input 15. Only the selected index is output. | |
| text16opt | STRING | Text input 16. Only the selected index is output. | |
| text17opt | STRING | Text input 17. Only the selected index is output. | |
| text18opt | STRING | Text input 18. Only the selected index is output. | |
| text19opt | STRING | Text input 19. Only the selected index is output. | |
| text20opt | STRING | Text input 20. Only the selected index is output. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |
| label | STRING | — |
| index | INT | — |
| prefixed_label | STRING | — |