Nodes/Anima-Tools/Anima Prompt Random Draw
ComfyUI Node

Anima Prompt Random Draw

A wildcard-style randomizer that knows Anima's tag order

By nregret·Created 3 months ago·Updated 13 days ago· 307
Anima Prompt Random Draw
    • text
    enable_artisttrue
    enable_charactertrue
    enable_clothingtrue
    enable_backgroundtrue
    enable_posetrue
    character_detailtrigger
    seed-1
    artist_count1
    preview_collapsedfalse
    resolved_prompt

    Some days you don't want to decide anything. You want the model to surprise you - a random artist, a random character, random outfit, background, pose, and see what comes out. That's the whole point of the Anima Prompt Random Draw (class name AnimaPromptComposer). Think of it as a wildcard node on steroids: on every run it randomly draws from the pack's full bundled databases and emits a ready-to-encode prompt string.

    It exists because Anima is picky about prompt structure. The model's recommended tag order is roughly quality → character → series → artist → general tags, and people genuinely get better results when the prompt is laid out that way. The composer enforces a fixed order for you: artist → character → clothing → background → pose, with deduplication along the way so the same tag doesn't appear twice. When people ask r/comfyui "is there a node that composes Anima prompts in the right order?", this pack is the answer that gets linked.

    How the draw works

    On every queue run, the node loads the bundled artist, character, clothing, background, and pose databases (40k artists, the animadex character set, plus the clothing/background/pose libraries) and picks:

    • a random artist (or more, see artist_count),
    • one random character,
    • one each of clothing, background, and pose.

    Characters are the interesting case. The composer uses the official trigger data (character_official_data.json) to emit the character's exact trigger words, and character_detail decides how much you get: trigger (default) outputs just the trigger, trigger_tags appends the full feature tags - hair color, eye color, that kind of thing.

    The inputs that matter:

    • seed - -1 (default) draws fresh every run. Set a fixed number and the same selection reproduces; the node also detects the seed change and re-executes accordingly.
    • artist_count - how many random artists (0–20). Character, clothing, background, and pose each draw exactly one when enabled.
    • enable_artist / enable_character / enable_clothing / enable_background / enable_pose - toggle whole categories off.
    • preview_collapsed - collapse the on-node preview of the drawn prompt and image thumbnails.
    • resolved_prompt - the state field holding the last draw, so the result persists and previews correctly in the workflow.

    Output is a single text STRING - wire it into a CLIPTextEncode and let it rip.

    Where it fits

    The natural use is a discovery workflow: run a grid of seeds with the composer attached, and it's like pulling from a slot machine of artists and characters you'd never have typed. It's also a great fit for the pack's own ecosystem - you can let the composer pick a character, then pop that character's trigger into the Character selector to lock it in for a session.

    One thing to know: with seed at -1 the output changes on every queue, including re-runs of the same workflow. If you draw something you like, copy the resolved prompt out of the node before you queue again - it won't wait for you.

    Install

    Zero-dependency pack, no pip:

    cd ComfyUI/custom_nodes
    git clone https://github.com/nregret/Comfyui-Anima-Tools
    

    Or ComfyUI Manager → search "Anima Tools" → Install, then restart ComfyUI. It appears under AnimaArt as "Anima Prompt Random Draw". All the draw databases are bundled with the pack, so no downloads there; the preview thumbnails come from a CDN and need internet.

    Honest take: this node is fun, but it's a randomizer - it's not going to compose a coherent intended scene. If you know what you want to draw, the pack's Anima Prompt nodes are the ones you want. If you're hunting for happy accidents, the Random Draw is exactly the right tool.

    CategoryAnimaArt

    Inputs (10)

    NameTypeDefaultDescription
    enable_artistBOOLEANtrue
    enable_characterBOOLEANtrue
    enable_clothingBOOLEANtrue
    enable_backgroundBOOLEANtrue
    enable_poseBOOLEANtrue
    character_detailCOMBOtrigger2 options: trigger, trigger_tags
    seedINT-1-1–2147483647
    artist_countINT10–20
    preview_collapsedBOOLEANfalse
    resolved_promptSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING