#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import json
from pathlib import Path

BASE_DIR = Path(r"c:\Projects\KieuStory")
sys.path.insert(0, str(BASE_DIR / "05_Production_Pipeline"))
import production_orchestrator as po

shots = po.get_all_shots("ep01")
for k, v in sorted(shots.items()):
    if k.startswith("ep01_scene01"):
        sid = k
        title = v.get("scene_title", "")[:50]
        ref_sf = str(v.get("reference_start_frame", ""))[:50]
        asset_ref = v.get("character_asset_ref")
        anchor = po.get_character_anchor(k, v)
        print(f"{sid} | title: {title} | anchor: {anchor} | asset_ref: {asset_ref} | ref_sf: {ref_sf}")
