CivArchive
    Wildcards v3 — Nested Brackets - v3.0
    Preview 134936384
    Preview 134936222
    Preview 134936361

    Wildcards v3 — Nested Brackets for Draw Things

    A small upgrade to wetcircuit's original Wildcards script (v0.5) for Draw Things.

    What's new in v3

    Nested wildcards. The original script supports flat {option1|option2|option3} substitution. v3 adds support for nestedbrackets, resolved innermost-first — so you can bind a sub-choice to only one branch of an outer choice:

    {long {brown|black} hair|short {blonde|red} hair}

    This will only ever produce long brown hair, long black hair, short blonde hair, or short red hair — never long blonde hair. Useful whenever certain variations should only apply to certain branches (hairstyle + color combos, object shape + matching color palette, clothing type + season-appropriate fabric, etc.)

    Improved randomization. Replaced Math.random() with a time-seeded mix that avoids the original script occasionally repeating the same pick several times in a row in short batches.

    Duplicate avoidance. The script now tracks which combinations have already been generated in the current batch and tries (up to 20 attempts) to avoid exact repeats — so a batch of 10 gives you 10 different combinations whenever the option space allows it.

    How to use

    Same as the original: write your prompt with {a|b|c} wildcards directly in the Draw Things prompt field, run the script from the Scripts tab, set your batch count, and it generates one image per resolved combination, logging each resolved prompt to the console.

    For nested syntax, just nest a second {...} inside one of the outer options — any depth works, resolved from the inside out.

    Simple example

    {cube {blue|black}|cylinder {yellow|red}}

    → always cube blue, cube black, cylinder yellow, or cylinder red — color stays bound to its shape.

    Credit

    Built on top of Wildcards v0.5 by wetcircuit. All core mechanics (UI, batch loop, pipeline calls) are his; this version only extends the bracket-parsing logic and randomization.

    License

    Same spirit as the original — free to use, modify, and share.

    Description

    Wildcards
    Other

    Details

    Downloads
    4
    Platform
    CivitAI
    Platform Status
    Available
    Created
    6/26/2026
    Updated
    6/26/2026
    Deleted
    -

    Files

    wildcardsV3Nested_v30.zip

    Mirrors

    CivitAI (1 mirrors)