#!/usr/bin/env python3
"""One Z-Image environment plate per shot (empty set, framed like the shot), 704x1280, for FastH3 Omni references."""
import json, pathlib
OUT = pathlib.Path(__file__).parent / "prompts" / "env"; OUT.mkdir(parents=True, exist_ok=True)
R = "/Users/sarthakrawool/omni-test/rb/env"
SET = ("3D animated feature film background environment, vertical 9:16 composition, empty of people, clean smooth stylised render, "
       "natural moderately rich colour, strong contrast with soft deep shadows, the far background softly blurred. ")
KD = "a cosy Midwestern family kitchen in the morning: cream cabinets, wooden floor, warm daylight from a window over the sink, a few Christmas cards on the fridge"
KN = "the same cosy family kitchen at night: cream cabinets, a warm pendant lamp over a wooden kitchen table, a dark blue window, the rest of the room in soft shadow"
LX = "a warm family living room on Christmas morning: a decorated Christmas tree with warm fairy lights, wrapped presents, a beige sofa with a knitted blanket, soft golden morning light"
SHOTS = {
 "g01": f"{KD}. Eye-level medium view across the kitchen: a blue recycling bin on the floor by the counter on the left, the counter with a coffee mug on the right, open floor space in the middle.",
 "g02": f"{KD}. View toward the hallway doorway on the right side of the kitchen, the doorway framed in the middle distance, the counter and recycling bin in the near left foreground.",
 "g03": f"{KN}. Eye-level view of the wooden kitchen table under the pendant lamp, a closed silver laptop on the table, two chairs, the dark window behind.",
 "g04": f"{KN}. View from behind the kitchen table: an open silver laptop on the table seen from the side, the warm lamp above, the cabinets softly blurred behind.",
 "g05": f"{KN}. Wider view of the kitchen at night from the table toward the kitchen entrance, the open laptop on the table edge in the foreground, warm lamp light pooling on the table.",
 "g06": f"{LX}. Eye-level view of the beige sofa in front of the window, the Christmas tree beside it on the right, torn wrapping paper on the floor in front of the sofa.",
 "g07": f"{LX}. Wider view of the living room: the sofa on the left, the Christmas tree on the right with presents under it, open floor space in the middle.",
}
for g, d in SHOTS.items():
    req = {"model": "z-image-turbo-8bit", "prompt": SET + d, "width": 704, "height": 1280, "seed": 11,
           "params": {"steps": 9}, "output": f"{R}/env_{g}.png"}
    (OUT / f"env_{g}.json").write_text(json.dumps(req, indent=1))
print(len(SHOTS), "->", OUT)
