Nodes/comfyui_gr85/Vertical Wildcard Picker
ComfyUI Node

Vertical Wildcard Picker

One option per line, no brace syntax required

By veighnsche·Created 2 years ago·Updated 8 months ago· 1
Vertical Wildcard Picker
    • Processed Prompt String
    wildcard_list
    seed0

    Not documented in the README at all - only Simple Wildcard Picker gets a write-up there, and that one uses inline {a|b|c} brace syntax embedded anywhere in a prompt string. Vertical Wildcard Picker's shape is different enough that it's clearly solving a related but distinct problem: a single wildcard_list field where each line is one option, picked at random and seeded, with no braces involved. "Vertical" almost certainly refers to how you author the options - stacked one per line down the textbox - rather than the horizontal {a|b|c} list you'd otherwise cram onto one line.

    Why that's a genuinely different, useful shape. Brace syntax gets unreadable fast once your options are more than a word or two - {a photo of a red sports car|a photo of a vintage motorcycle|a photo of a delivery van} is a mess to edit and easy to mis-nest. Vertical Wildcard Picker sidesteps that entirely: paste a list of full phrases, one per line, and it picks one. No brace-balancing, no nesting rules to remember - just a plain list.

    Inputs and output. wildcard_list (required, multiline string, default empty) - your options, one per line. seed (required, INT, 0 to roughly 1.84×10¹⁹ - the same full 64-bit range used across the pack's other seed inputs) - determines which line gets picked; same seed, same line, every time. The output socket is labeled Processed Prompt String - notably a display-style name rather than the snake_case most of the pack's other outputs use, a small inconsistency worth knowing so you're not surprised when you go looking for it under a different name in the node's output list.

    Installing it. No external dependencies - plain text splitting and a seeded random pick. Search "comfyui_gr85" in ComfyUI Manager, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/veighnsche/comfyui_gr85
    

    Restart ComfyUI.

    What to watch for. It's seeded exactly like the rest of the pack's random-selection nodes, so leaving seed static gives you the same line back every single run - vary it, or tie it to your batch/KSampler seed, if you actually want the pick to change. And since it's reading line by line, a stray blank line in your list is the kind of thing worth trimming before you rely on it - an empty line has to resolve to something, and it's safer to assume that "something" is a blank pick than to find out the hard way mid-batch. If you need inline variation inside a bigger template rather than a single standalone pick, Simple Wildcard Picker's brace syntax is the better tool; this one's for when the whole output is just "pick one of these."

    CategoryGR85/Prompt

    Inputs (2)

    NameTypeDefaultDescription
    wildcard_listSTRING
    seedINT00–18446744073709550000

    Outputs (1)

    NameTypeDescription
    Processed Prompt StringSTRING