Nodes/Bjornulf_custom_nodes/๐ŸŒ„๐Ÿ“ Text Generator (Scene)
ComfyUI Node

๐ŸŒ„๐Ÿ“ Text Generator (Scene)

Setting, weather, and time of day from dropdowns

By justUmenยทCreated 2 years agoยทUpdated about a year agoยท 545
๐ŸŒ„๐Ÿ“ Text Generator (Scene)
    • GEN_SCENE
    โ—„seed0โ–บ
    โ—„scene_typeโ–พโ–บ
    โ—„time_periodโ–พโ–บ
    โ—„weather_conditionโ–พโ–บ
    โ—„settingโ–พโ–บ
    โ—„CUSTOM_PROMPTโ–บ

    Simpler than its character and outfit siblings in the pack's Text Generator family: this one's whole job is the environment your character stands in, not the character itself. It doesn't chain into anything else - no optional inputs to wire other generator nodes through - it just connects directly to the pack's main Text Generator node with its own scene description. Straightforward by design.

    How it works

    Four category dropdowns build the scene: scene_type (urban, natural, fantasy, sci-fi, historical, industrial, and more - the broad genre), time_period (dawn through midnight, plus golden hour and blue hour for that specific warm or cool light), weather_condition, and setting, which is the big one at over a hundred entries - everything from "city street" and "forest" to "cyberpunk city" and "floating islands." Each follows the same NONE / RANDOM / specific-value pattern as the rest of the family, and seed controls which random picks land when you've got categories set to RANDOM. CUSTOM_PROMPT is there if you want to hand-write detail the dropdowns don't cover, layered on top of whatever the categories generate.

    The inputs and outputs that matter

    • scene_type - the broad genre of the scene (urban, natural, fantasy, sci-fi, and so on).
    • setting - the specific place, and by far the largest list here; this is the one that does most of the descriptive work.
    • time_period / weather_condition - lighting and atmosphere, worth setting deliberately if a specific mood matters to you rather than leaving them random.
    • CUSTOM_PROMPT (STRING, multiline) - freeform text on top of the generated description.
    • Output: GEN_SCENE - connects straight into the main Text Generator node.

    How to install it

    Via ComfyUI Manager: search Bjornulf_custom_nodes, install, restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/justUmen/Bjornulf_custom_nodes
    cd Bjornulf_custom_nodes && pip install -r requirements.txt
    

    then restart ComfyUI. No special dependency for this node - it's a dropdown/text builder - though the pack's shared requirements.txt still gets installed since it's all one repository.

    Common issues & troubleshooting

    The scene description doesn't show up in your image. Same story as the rest of the Text Generator family - this node only outputs a GEN_SCENE fragment, and it needs to actually reach the pack's main Image Text Generator node to become part of your real prompt.

    setting and scene_type contradict each other. Because these are independent dropdowns rather than a filtered hierarchy, nothing stops you picking scene_type: underwater alongside setting: castle - the node will happily generate that combination even though it doesn't obviously make sense together. If your output looks confused, check whether your category picks are actually compatible before blaming the model.

    Random rolls give you a scene that doesn't fit your character or checkpoint. With setting alone running over a hundred options, leaving it on RANDOM can land somewhere your checkpoint just isn't good at rendering. If a generation looks consistently off, try pinning setting to a specific value rather than random-rolling it, so you can isolate whether the scene or something else in the prompt is the problem.

    CategoryBjornulf

    Inputs (6)

    NameTypeDefaultDescription
    seedINT00โ€“18446744073709550000โ€”
    scene_typeCOMBO17 options: NONE, RANDOM, urban, natural, fantasy, sci-fi, +11
    time_periodCOMBO12 options: NONE, RANDOM, dawn, morning, noon, afternoon, +6
    weather_conditionCOMBO17 options: NONE, RANDOM, clear, cloudy, rainy, stormy, +11
    settingCOMBO111 options: NONE, RANDOM, city street, forest, beach, mountains, +105
    CUSTOM_PROMPTSTRINGโ€”

    Outputs (1)

    NameTypeDescription
    GEN_SCENEGEN_SCENE,STRINGโ€”