Nodes/ComfyUI-RvTools_v2/Prompt Environment
ComfyUI Node

Prompt Environment

Click six dropdowns, get a coherent environment prompt

By r-vage·Created about a year ago·Updated 5 months ago· 23
Prompt Environment
    • prompt
    SkyNone
    IndoorNone
    OutdoorNone
    BuildingNone
    FlowersNone
    BackgroundNone
    seed0

    Prompt Environment [RvTools] builds a scene-setting prompt from six dropdowns - Sky, Indoor, Outdoor, Building, Flowers, Background - plus a seed. Pick "beautiful detailed sky" for the sky slot, "beach" for outdoor, and it assembles the chosen descriptors into a comma-joined prompt fragment, ready to paste into your positive conditioning or feed downstream. Every category also offers Random, which picks one entry for you using the seed.

    Why you'd reach for it

    The hardest part of prompt writing is the boring middle - the environment scaffolding that makes a subject feel placed-in-the-world rather than floating on gray. This node makes that part clickable. Instead of remembering "sky: beautiful detailed sky, background: outdoors, flowers: roses," you choose from curated lists (179 flower entries, 87 outdoor locations, 86 buildings - the lists live in the pack's json/environment.json and are the whole product here). It's a shortcut for consistent scene vocabulary, not a creativity replacement.

    It also plays well with iteration: seed + Random means a "Random" run gives you a different environment each time, and locking the seed gives you reproducible randomness - handy for generating a batch of environments and picking the one that fits.

    How it works

    Each category is an enum loaded from environment.json. The node collects every category you didn't leave at "None," and for any set to "Random" it draws one entry from that category's list using Python's random (seeded by the seed widget). The chosen descriptors are joined with commas and a trailing comma is appended - so the output slots cleanly into a prompt like (masterpiece, best quality), <environment text>, (subject).

    Inputs that matter: the six category dropdowns and seed. Set a category to "None" to skip it, "Random" to pick one, or any specific value to force it.

    Output: prompt - a single STRING of the selected descriptors.

    Install

    Standard RvTools install:

    • ComfyUI Manager → search "RvTools" → install ComfyUI-RvTools_v2 → restart.
    • Or: cd ComfyUI/custom_nodes && git clone https://github.com/r-vage/ComfyUI-RvTools_v2, then restart.

    The environment lists ship inside the pack - no separate download. If you want to add your own locations, editing json/environment.json after install is the (unsupported but real) way.

    Gotchas

    The output is a fragment, not a full prompt - it ends with a comma and contains no subject or quality tags. Drop it into a CLIP Text Encode alongside your main prompt via the appropriate merge/combine node, or you'll wonder why your "prompt" is just weather words. Also, the category coverage is artist-oriented vocabulary (anime-ish location tags like "clubroom" and "magic circle"), so it reads more natural in that style than in photorealistic prompting - YMMV on realism workflows.

    And the pack's standing situation: RvTools v2 is deprecated in favor of ComfyUI_Eclipse, and v1-era workflow names won't auto-map in old saved graphs. A text utility like this migrates cleanly, but check whether Eclipse kept the same environment.json lists.

    Category🫦 RvTools II/ Text

    Inputs (7)

    NameTypeDefaultDescription
    SkyCOMBONone28 options: None, Random, beautiful detailed sky, blue moon, cloud, cloudy, +22
    IndoorCOMBONone35 options: None, Random, armory, bathroom, bathtub, bedroom, +29
    OutdoorCOMBONone87 options: None, Random, airfield, alley, amusement park, aqueduct, +81
    BuildingCOMBONone86 options: None, Random, airport, amphitheater, apartment, aquarium, +80
    FlowersCOMBONone179 options: None, Random, alstroemeria (flower), amaryllis (flower), anemone, angel's trumpet, +173
    BackgroundCOMBONone17 options: None, Random, beautiful detailed water, christmas, feather, gradient background, +11
    seedINT0-1125899906842624–1125899906842624

    Outputs (1)

    NameTypeDescription
    promptSTRING