Environment
How This Pack Stops Your Backgrounds Looking Like Mush
- environment
Environment is the section of the Prompt Builder pack that decides where the scene happens - and it's the node you'll blame less, but thank more, than the character stuff. A great character in a floating grey void is a half-finished image; the Environment node is the part of the pack that makes your backgrounds look like a deliberate scene instead of accidental mush.
It works the same way every section node here works: dropdowns read from presets.json, everything you select gets joined with commas, None skips a field, and the result is one string. But Environment has a nice spread of decisions baked in, so you can go from "a room" to "a rainy cyberpunk alley at midnight with dramatic rim lighting" without typing a word.
The inputs that matter
Ten fields, and they mostly self-organize into setting and mood:
location(56 options - alley, rooftop, bedroom, library…) andsetting(urban, rural, fantasy, cyberpunk, post-apocalyptic, medieval…). These two anchor everything else.indoor_outdoor,time_of_day(day, night, golden hour, blue hour…), andweather(rain, snow, fog, storm…). Set two of these and the scene starts to feel real.lighting_1andlighting_2- the duplicate-slot pattern again: base lighting plus one modifier. "Cinematic lighting" plus "rim lighting" reads well; two conflicting picks just cancel out.background_complexity- the sneaky-important one. If the model is adding visual noise behind your character, "simple background" or "minimal background" is the fix. If you want a world, "highly detailed background."atmosphere_1andatmosphere_2- mysterious, romantic, serene, moody, cozy… the emotional glue.
The output is environment - one string that feeds the environment input on the pack's Combine Prompt node, where it's joined after the action tags.
Install
Same story as the rest of the pack - zero dependencies, nothing to download.
cd ComfyUI/custom_nodes
git clone https://github.com/zinigo-creations/comfyui-prompt-builder
Or use ComfyUI Manager (search "Prompt Builder") and restart ComfyUI.
Common issues
One real, documented trap: location words like "beach," "snow," or "bedroom" are exactly the kind of keyword that can push some models toward blown-out, overexposed highlights - it's a known association quirk on a few WAI/Illustrious checkpoints. If your backgrounds start blasting white, don't blame the node: add overexposed, washed out, blown highlights to your negative prompt, or weight the location tag down. And the usual pack advice applies here too - "detailed background" plus "busy background" plus five location tags is how you get a noisy image that ignores your character. Pick one location, one weather, one atmosphere, and let the scene breathe.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| location | COMBO | 56 options: None, simple background, alley, street, city, city skyline, +50 | |
| indoor_outdoor | COMBO | 3 options: None, indoor, outdoor | |
| setting | COMBO | 11 options: None, urban, rural, fantasy, sci-fi, cyberpunk, +5 | |
| time_of_day | COMBO | 10 options: None, day, night, dawn, sunrise, sunset, +4 | |
| weather | COMBO | 11 options: None, clear sky, rain, heavy rain, snow, snowfall, +5 | |
| lighting_1 | COMBO | 12 options: None, soft lighting, natural lighting, ambient lighting, studio lighting, cinematic lighting, +6 | |
| lighting_2 | COMBO | 12 options: None, soft lighting, natural lighting, ambient lighting, studio lighting, cinematic lighting, +6 | |
| background_complexity | COMBO | 6 options: None, simple background, minimal background, detailed background, highly detailed background, busy background | |
| atmosphere_1 | COMBO | 13 options: None, mysterious, romantic, tense, serene, peaceful, +7 | |
| atmosphere_2 | COMBO | 13 options: None, mysterious, romantic, tense, serene, peaceful, +7 |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| environment | STRING | — |