Nodes/AUN ComfyUI Nodes/Negative Prompt Selector
ComfyUI Node

Negative Prompt Selector

Stop rewriting the same negative prompt over and over

By loz2754·Created 8 months ago·Updated about 19 hours ago· 5
Negative Prompt Selector
    • negative
    negative1
    negative2
    negative3
    negative4
    negative5
    negative6
    negative7
    negative8
    negative9
    negative10
    which_negative1
    visible_inputs10
    negative11
    negative12
    negative13
    negative14
    negative15
    negative16
    negative17
    negative18
    negative19
    negative20

    Negative prompts are the part of your workflow you tune the least and copy-paste the most. "blurry, lowres, bad anatomy, extra fingers, watermark…" - you've got a version for portraits, a version for landscapes, a strict one, a loose one. Negative Prompt Selector lets you store up to 20 of them in one node and pick which one ships to your CLIP Text Encode node with a single index. Boring? Sure. Genuinely useful? Very.

    What it does

    The node is just a lookup table plus an index. You type your negative prompts into the multiline negative1negative20 fields, and which_negative (1–20) decides which one comes out of the single negative STRING output. Nothing clever happens at execution - it's a text switch, and that's exactly what you want: zero surprises, and it composes with every other index generator in this pack.

    The part that makes it click: the tooltip for which_negative explicitly tells you to "connect the index output of a text index switch here." That's the intended pairing. Use AUN Random/Select INT or AUN Text Index Switch to generate an index - random, cycling, or fixed - and feed it in. Now your negative prompt rotates in lockstep with your positive prompts, which is how you get coherent variation instead of a mismatched prompt/negative mashup.

    Inputs worth knowing

    • which_negative (INT, 1–20) - the selector. Default 1. Wire it, don't type it.
    • visible_inputs (INT, 2–20) - how many of the 20 fields actually render on the node. Drop this to 4 when you only use four, and the node stops being a wall of text boxes.
    • negative1negative20 - the prompts themselves. Multiline, so you can stack several phrases per slot.

    Only one output: negative (STRING), which goes straight into a CLIP Text Encode node's negative input.

    Common setups

    • Fixed set, manual pick - set which_negative by hand, use visible_inputs to keep it small. Basically a nicer dropdown.
    • Paired with a cycler - drive which_negative from the same index that drives your positive prompt switch, and each prompt in your rotation gets the negative that belongs to it.
    • Random negatives - feed a Random/Select INT set to Random over the range you want, and every batch gets a different negative. Handy for exploring, mildly chaotic for reproduction - keep the seed fixed when you want it back.

    Install

    It's part of the AUN ComfyUI Nodes pack (loz2754), so install the pack once and this appears under AUN Nodes/Text. ComfyUI Manager: search "AUN ComfyUI Nodes". Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/loz2754/AUN-ComfyUI-Nodes
    

    Then restart ComfyUI. The pack's Python deps (piexif, opencv-python-headless, imageio-ffmpeg, requests) are handled by Manager; manually, pip install -r custom_nodes/AUN-ComfyUI-Nodes/requirements.txt. No model downloads - this is a text-routing utility.

    The one trap

    There is no validation that which_negative is within visible_inputs. If you hide fields, the hidden ones still work - but a beginner will assume a hidden field is disabled and then wonder why a negative from slot 17 is leaking into output. Either keep the range honest or just leave everything visible. And a tip from experience: don't put your entire life story in one negative slot. Keep them focused; the node makes it cheap to have a "quality fixes" negative and a "style fixes" negative as separate options.

    CategoryAUN Nodes/Prompts

    Inputs (22)

    NameTypeDefaultDescription
    negative1STRINGNegative prompt option 1.
    negative2STRINGNegative prompt option 2.
    negative3STRINGNegative prompt option 3.
    negative4STRINGNegative prompt option 4.
    negative5STRINGNegative prompt option 5.
    negative6STRINGNegative prompt option 6.
    negative7STRINGNegative prompt option 7.
    negative8STRINGNegative prompt option 8.
    negative9STRINGNegative prompt option 9.
    negative10STRINGNegative prompt option 10.
    which_negativeINT11–20Select which negative prompt (1-20) to output. Connect the index output of a text index switch here.
    visible_inputsINT102–20How many negative prompt fields to show on the node (2-20).
    negative11STRINGNegative prompt option 11.
    negative12STRINGNegative prompt option 12.
    negative13STRINGNegative prompt option 13.
    negative14STRINGNegative prompt option 14.
    negative15STRINGNegative prompt option 15.
    negative16STRINGNegative prompt option 16.
    negative17STRINGNegative prompt option 17.
    negative18STRINGNegative prompt option 18.
    negative19STRINGNegative prompt option 19.
    negative20STRINGNegative prompt option 20.

    Outputs (1)

    NameTypeDescription
    negativeSTRING