Blender Commercial Director (blender-commercial-director)
A cross-platform, zero-hardcoded-path commercial 3D product film pipeline forged across two complete flagship films (Caliber-01 Swiss Chronograph — procedural modeling + Veo 3.1 Start→End AI slots + Demucs/VO + bilingual covers; and Leica M11 × Summilux-M 50mm 2K 1440p24 — external CAD + 11-Swarm modeling + 96GB cloud RTX PRO 6000 + 5D zero-skip QA).
Progressive Disclosure Rule: Read only the reference file for the phase you are entering, and execute the ready-made scripts in
./scripts/instead of reinventing glue code.
0. Cold Start (3 Steps) & Three Upfront Decisions
Quick Start for New Users / Agents
- Place Project Inputs:
- Mode 1 (有参考视频 · Reference-Driven): Put
ref/source.mp4(+ optionalassets/raw/<model>.blend). - Mode 2 (无参考视频 · Original Creative): Provide your own storyboard & lighting brief (in chat or
specs/user_storyboard_brief.mdusing the template in 01_narrative_and_gates.md) + optionalassets/raw/<model>.blend,ref/moodboard_*.jpg, andaudio/bgm.wav.
- Mode 1 (有参考视频 · Reference-Driven): Put
- Run Phase 0 + Phase 1 (Probe host/CAD; run forensic breakdown in Mode 1 OR lock the user's Storyboard & Lighting Brief in Mode 2).
- Lock Gate #1 on the three upfront axes below before touching any 3D geometry or lighting.
Axis 1 · Creative Input Mode (Have Reference Video vs No Reference Video)
| Dimension | Mode 1 · 有参考视频 (ref/source.mp4) | Mode 2 · 无参考视频 (Original Storyboard & Lighting) |
|---|---|---|
| Phase 1 Action | Run analyze_ref_forensic.py on ref/source.mp4 (full-frame cuts, luma polarity, beats, tail-silence, 12-TET key). | Skip analyze_ref_forensic.py. User writes (or co-authors with Agent) specs/user_storyboard_brief.md specifying shot-by-shot storyboard + lighting polarity/key-rim-sweep mood + duration/pacing. |
| Phase 2 Design | Preserve reference narrative skeleton + run 6-Item Cross-Category Conflict Audit to eliminate reference-specific mismatches. | Translate user's Storyboard & Lighting Brief into specs/director_bible.md + specs/master_schedule.json + still run items #1–#5 of the Physical Conflict Audit (causality, dark-hero backdrop, transition coupling). |
| Audio Baseline | Inherit reference beat grid (0.000ms drift); extend silent tail via FFT Chroma or Demucs vocal strip. | User supplies audio/bgm.wav (sync beats to it), requests original score/Foley, or works pure-visual + precision mechanical Foley. |
| Hard Stop Rule | Never invent a disconnected script ignoring ref/source.mp4. | Never silently invent the entire storyboard & lighting from a vague 1-line prompt! Ask the user to fill the template in 01_narrative_and_gates.md (or pick from 2 concrete A/B Creative Directions) before Gate #1. |
Axis 2 · Production Route (Pure-3D vs Hybrid 3D + AI Real-Action + VO)
| Dimension | Route A · Pure-3D Architectural / Horological | Route B · Hybrid 3D + AI Real-Action + VO |
|---|---|---|
| Best for | Cameras, lenses, hardware, mechanical engineering & optics | Wearables/handhelds needing human hands, eyes, skin pores, or crowds |
AI_SLOT / Audio | 0 AI slots · 0 VO: music/Foley or FFT key-locked tail extension | 1–3 AI slots (Start→End) · Demucs htdemucs_ft + custom VO (-3 dB duck, -14 LUFS) |
| Default Master | 24.000 fps CFR · 1920×1080 or 2560×1440 (2K QHD) | 24.000 fps CFR · 1920×1080 (Dual Masters: BGM-only + VO) |
Axis 3 · Compute Track (Local Single-GPU vs Cloud High-VRAM GPU)
- Local Single-GPU: Skip CDC delta sync and cloud keep-alive; run
colab_lpt_supervisor.py render --workers 1(or local Blender checks serialized throughGpuCyclesMutexonrenders/previs/_gpu_cycles.lock). - Cloud High-VRAM GPU (RTX PRO 6000 / H100 / A100): Provision once at Phase 5.5, start dual-layer keep-alive, sync
.blendupdates via CDC binary delta (<24 MBchunks), render with--workers 3..4, and tear down ONLY AFTER 100% of final 1080p/2K PNGs and Master MP4 pass 5D QA on local disk.
1. One-Glance End-to-End Pipeline Map
| Phase | Input | Core Action / Script | Primary Deliverable | Gate |
|---|---|---|---|---|
| 0 & 0.5 | Local OS + optional assets/raw/*.blend | env_and_asset_preflight.py (host + Blender thin-shell/texture/font audit) | specs/env_capabilities.json, specs/asset_preflight.json | — |
| 1 | Mode 1: ref/source.mp4 Mode 2: User brief / moodboard / optional BGM | Mode 1: analyze_ref_forensic.py Mode 2: Collect/co-author Storyboard & Lighting Brief | Mode 1: specs/ref_forensic_beats.json + contact sheet Mode 2: specs/user_storyboard_brief.md | — |
| 2 | Phase 1 outputs | Narrative/shot breakdown + Physical Conflict Audit (01) | specs/director_bible.md, specs/master_schedule.json | Gate #1 |
| 3 | assets/raw/* or specs | External CAD thickening + Subsystem Swarms OR Pure-Quad bmesh (02) | assets/hero_asset.blend (verified in Neutral Calibration Studio) | Gate #2 |
| 4 | hero_asset.blend + lighting brief | 9-recipe Multi-Layer PBR + Physical Studio Softboxes/Flags/Light Linking (02) | assets/lookdev_library.blend + 6× 1080p styleframes | Gate #3 |
| 5 | master_schedule.json + hero_asset.blend | Continuous-motion seq01..N.blend + 70/30 Bolt 720p Clay Previs (03) | renders/previs/*_clay.mp4 + split + cut-boundary sheet | Gate #4A |
| 5.5 | Locked seq01..N.blend | 2fps Cycles sweep → Full 24fps 540p Cycles draft → Red-Team Critic + 1-Problem Swarm Polish (03, 05) | renders/cycles_540p/*_draft.mp4 + dense 16F & 3× crops | Gate #4B |
| 6 | Zero-defect seq01..N.blend | Local --workers 1 OR Cloud LPT --workers 3..4 + CDC sync + 5D Zero-Skip QA | renders/cycles_2k/frame_0001..N.png + *_qa_report.json | (QA Pass) |
| 7 & 8 | Verified PNGs + audio + optional AI slots | Audio master (extend-tail or Demucs/VO) + optional AI slots (Gate #5) + optical finish + BT.709 encode + covers + safe GPU teardown (04) | renders/final/*_Master.mp4 (17pt ffprobe PASS) + covers | Gate #5 (Route B) |
2. Six Mandatory Human Gates & Core Iron Laws
Never blind-run Phase 0 → Phase 8. For any subjective creative fork (lighting mood, background tone, transition style, pacing trim), present 2–3 concrete A/B renders or structured options instead of guessing blindly.
- Gate #1 (End of Phase 2): Approve
specs/director_bible.md,specs/master_schedule.json, Mode 1/2 storyboard & lighting plan, Physical Conflict Audit, audio plan, andAI_SLOTlist. - Gate #2 (End of Phase 3): Approve
assets/hero_asset.blend(4-view + 10× macro under a Neutral Calibration Studio atExposure = 0). - Gate #3 (End of Phase 4): Approve 6 Lookdev styleframes (
1920×1080 @ 160spp,clip(>248)==0%, dark metal not washed grey, clean optical glass). - Gate #4A (End of Phase 5 · Clay Previs): Approve 720p clay animatic (locks ONLY blocking, camera path, silhouette, timing, BVH zero-penetration).
- Gate #4B (End of Phase 5.5 · Low-Res True-Cycles Gate — CRITICAL): Approve full
24fps960×540 @ 48–64spptrue Cycles draft + Red-Team Critic verdict + dense 16F strips + 3× native crops. Never launch 1080p/2K before 540p is 100% defect-free! - Gate #5 (Phase 7, Route B only): Approve raw AI video clips (picked via 4fps zoomed contact-point crops) BEFORE subpixel motion processing.
Non-Negotiable Iron Laws
- Blender 5.x API Safety: ZERO
.use_nodes; ZEROaction.fcurves(bake frame-by-frame viakeyframe_insert());scene.sequence_editor.strips; explicitlyfont.pack()alongsidepack_all(); default active scene must be a real 3D camera scene. - 1 Problem = 1 Dedicated Specialist: Each polish fix ships as an idempotent standalone Python module (e.g.
p12_glass_fix.py), visually verified before the sole scene integrator merges it. Always keep read-only Red-Team Critic & 5D QA verifiers. - Visual Audit Budget: Never dump giant MP4s into context; always inspect via contact sheets, 16-frame dense strips, 1:1 / 3× crops, or compressed slices (
<550 KBfor 15s @ 16fps;<450 KBfor 5s @ 24fps). - Local Single-GPU Lock: Concurrent local Cycles checks MUST acquire
renders/previs/_gpu_cycles.lockviaGpuCyclesMutexin blender5_lookdev_kit.py. - No Premature Cloud GPU Teardown: Keep dual-layer keep-alive active from Phase 5.5 through Phase 6 Final 5D QA; stop ONLY after 100% of final high-res PNGs + Master MP4 pass locally.
3. Standard Portable Directory Layout
Every script resolves PROJECT_ROOT dynamically (--project-root or Path(__file__).resolve().parent.parent). Never hardcode user drive letters or usernames.
<PROJECT_ROOT>/
├── ref/ # Mode 1: source.mp4 + forensic contact/typo sheets
│ # Mode 2: optional moodboard_*.jpg lighting/look references
├── specs/ # env_capabilities.json, asset_preflight.json,
│ # ref_forensic_beats.json (Mode 1) OR user_storyboard_brief.md (Mode 2),
│ # director_bible.md, master_schedule.json, *_qa_report.json
├── assets/
│ ├── raw/ # READ-ONLY user-supplied CAD / .blend (NEVER overwrite!)
│ ├── hero_asset.blend # Normalized master hero rig (0 unpacked imgs/fonts, >=1.8mm closed shells)
│ ├── lookdev_library.blend
│ ├── textures/ # 4K procedural engravings + 4K CC0 surface imperfections
│ └── scenes/ # Merged continuous-motion seq01..N.blend
├── ai_slots/ # (Route B) control_frames/ + clips/
├── audio/ # 48kHz stereo stems, BGM, VO phrases, -14 LUFS masters
├── fonts/ # Modern geometric sans + monospace (packed into .blend)
├── renders/
│ ├── styleframes/ # Phase 4 (6x 1080p lookdev frames)
│ ├── previs/ # Phase 5 (720p clay + split + _gpu_cycles.lock)
│ ├── cycles_540p/ # Phase 5.5 (24fps true-Cycles draft + dense strips + QA)
│ ├── cycles_2k/ # Phase 6 (raw 1080p/2K PNGs + archival master + 1:1 crop sheet)
│ └── final/ # Phase 8 (optical-finished Master A/B, sync split, covers, audit)
└── scripts/
4. Phase-by-Phase Execution Runbook (Copy-Paste Commands)
Phase 0 & 0.5 · Environment Probe + Raw CAD/Mesh Pre-Flight Audit
Checklist: (1) Verify Blender 5.x, Python packages, FFmpeg/FFprobe, GPU; (2) Never edit
assets/raw/*; (3) Detect missing PBR textures, UV gaps, hollow interiors, and zero-thickness thin shells (boundary_edge_ratio > 0.02); (4) Detect unpacked fonts; (5) UTF-8 BOM-free script writes.
python <SKILL_DIR>/scripts/env_and_asset_preflight.py host --out specs/env_capabilities.json
blender --background assets/raw/<model>.blend --python <SKILL_DIR>/scripts/env_and_asset_preflight.py -- --out specs/asset_preflight.json
Phase 1 · Input Intake (Mode 1: Reference Forensic OR Mode 2: User Storyboard & Lighting Brief)
Checklist: (1) Confirm Mode 1 vs Mode 2 explicitly; (2) Mode 1: full-frame cuts, 4-tier luma polarity, beats, tail-silence dBFS, 12-TET Chroma key; (3) Mode 2: lock user-written per-shot storyboard + lighting polarity + key/rim/sweep mood + audio plan (zero silent guessing!); (4) Note moving accent lights & reflection sweeps per shot.
- Mode 1 (有参考视频):
python <SKILL_DIR>/scripts/analyze_ref_forensic.py --ref ref/source.mp4 --out-dir specs --ref-dir ref
- Mode 2 (无参考视频):
- Open 01_narrative_and_gates.md §2 and fill/co-author
specs/user_storyboard_brief.mdwith the user (shot durations, hero actions, camera lens/move, lighting polarity & key/rim/sweep lighting design, backdrop/transitions, audio source).
- Open 01_narrative_and_gates.md §2 and fill/co-author
Phase 2 · Narrative & Schedule Lock → Gate #1
Checklist: (1) Mode 1 preserves reference skeleton; Mode 2 honors user's storyboard & lighting brief; (2) Run Physical Conflict Audit (silhouette, dark-hero backdrop, transition coupling, chronological assembly causality, mechanical intuition, audio tail); (3) Merge continuous motion into 6–12
.blendfiles; (4) Emitspecs/director_bible.md+specs/master_schedule.json.
- Read 01_narrative_and_gates.md → STOP at Gate #1.
Phase 3 · Hero Asset Normalization / Subsystem Swarms → Gate #2
Checklist: (1) Pure-quad exteriors (0 Boolean craters); (2) Thicken thin shells to
1.8–2.5 mmclosed CNC bodies; (3) Millimeter scale,XY < 0.1 mm,min_z = 0.000 m; (4)audit_duplicate_faces == 0& articulation-sweepaudit_bvh_overlap == 0; (5) Judge dark albedo only in Neutral Calibration Studio (Exposure=0).
- Read 02_modeling_and_lookdev_recipes.md; import mesh/BVH tools from blender5_lookdev_kit.py → STOP at Gate #2.
Phase 4 · Multi-Layer PBR Library & Physical Studio Lookdev → Gate #3
Checklist: (1) Classify every hero/prop material via the 7-Archetype × 6-Layer × 4-Scale Universal PBR stack (
universal_pbr_engine.py, linear albedo[0.028, 0.85], scale-locked Bump/Bevel/AO, independentCoat Normal); (2) 8K studio Softbox HDRI + procedural gradient strip lights +#050505negative-fill flags; (3) Glass bounces (max/transmission/transparent = 16); (4)Light Linkingisolates optics/viewfinders/badges & prevents low-weight glossy green speckles; (5) Match Phase 1/2 lighting polarity per shot (clip(>248)==0%).
- Read 06_universal_pbr_methodology.md and 02_modeling_and_lookdev_recipes.md; import
build_universal_pbr/build_preset_materialfrom universal_pbr_engine.py and lighting helpers from blender5_lookdev_kit.py → STOP at Gate #3.
Phase 5 · Multi-Act Scene Build & 70/30 Clay Previs → Gate #4A
Checklist: (1) 70% horizontal Bolt-arm moves + 30% signature accents; (2) Quaternion camera baking (
bake_camera_lookat) + hard-cut guard (F_cut+0.40/0.60); (3) Right-hand rule rotation check + 3-frame strip; (4) Pre-dissolve optical glass5–7mmahead of pass-through (clip_start=0.0002m); (5) Zero sampling skips.
- Read 03_cinematography_and_previs.md → STOP at Gate #4A.
Phase 5.5 · Low-Res True-Cycles Gate (540p) + Red-Team Polish → Gate #4B
Checklist: (1) 2fps full-film Cycles lighting sweep; (2) Render full
24fps960×540 @ 48–64spp(Local--workers 1or Cloud--workers 3..4with keep-alive ON); (3) Run read-only Adversarial Red-Team Critic on 32F sheet + dense 16F strips + 3× crops; (4) Fix via 1 Problem = 1 Specialist (5 Anti-Over-Correction Laws); (5) Verify cross-scene boundary ownership if any cut moves.
# Render full 540p Cycles draft (set --workers 1 for local single-GPU, 3-4 for 96GB cloud GPU)
python <SKILL_DIR>/scripts/colab_lpt_supervisor.py render \
--schedule specs/master_schedule.json --scenes-dir assets/scenes --out-dir renders/cycles_540p/frames \
--workers 3 --res-x 960 --res-y 540 --samples 64 --adaptive-threshold 0.015 --denoiser AUTO
# Zero-skip 5D QA + 32F overview + dense 16F action strip
python <SKILL_DIR>/scripts/forensic_qa_and_encode.py qa \
--frames-dir renders/cycles_540p/frames --schedule specs/master_schedule.json \
--total-frames 1296 --width 960 --height 540 \
--sheet-32 renders/cycles_540p/qa_32f.jpg --dense-16 renders/cycles_540p/dense16.png --dense-range 690:837 \
--out-json specs/qa_540p.json
- Read 03_cinematography_and_previs.md & 05_red_team_critic_and_troubleshooting.md → STOP at Gate #4B.
Phase 6 · 1080p / 2K Master Render & 5D Zero-Skip Forensic QA
Checklist: (1) Verify
.blendSHA-256 parity + 0 unpacked images/fonts + 0 invalid drivers; (2) Cloud track: keep dual-layer keep-alive running, sync.blendedits via CDC delta, pull PNGs in<24 MBchunks; (3) Run 5D zero-skip QA + 4× firefly scan and patch any dirty frame BEFORE stopping cloud GPU!
# Cloud track: Start idle-only CUDA keep-alive daemon on remote host
python <SKILL_DIR>/scripts/colab_lpt_supervisor.py keepalive-daemon --interval 60
# Cloud track: Sync updated .blend via CDC binary delta (e.g., 313 MB -> ~2 MB patch)
python <SKILL_DIR>/scripts/cdc_delta_sync.py diff --base old.blend --target new.blend --patch delta.cdc
python <SKILL_DIR>/scripts/cdc_delta_sync.py apply --base old.blend --patch delta.cdc --out new.blend
# Render 2K (or 1920x1080) master PNG sequence
python <SKILL_DIR>/scripts/colab_lpt_supervisor.py render \
--schedule specs/master_schedule.json --scenes-dir assets/scenes --out-dir renders/cycles_2k/frames \
--workers 3 --res-x 2560 --res-y 1440 --samples 128 --adaptive-threshold 0.012 --denoiser AUTO
# Cloud track: Pack & pull PNGs in <24MB SHA-256 chunks, then unpack locally
python <SKILL_DIR>/scripts/cdc_delta_sync.py pack-chunks --src-dir renders/cycles_2k/frames --out-dir chunks_out --chunk-mb 16
python <SKILL_DIR>/scripts/cdc_delta_sync.py unpack-chunks --manifest chunks_out/batch_manifest.json --dest-dir renders/cycles_2k/frames
# Local read-only 5D zero-skip QA (must report 0 missing, 0 fireflies, Anti-Freeze PASS)
python <SKILL_DIR>/scripts/forensic_qa_and_encode.py qa \
--frames-dir renders/cycles_2k/frames --schedule specs/master_schedule.json \
--total-frames 1296 --width 2560 --height 1440 \
--sheet-32 renders/cycles_2k/qa_32f.jpg --out-json specs/qa_2k.json
Phase 7 & 8 · Audio Master, Optional AI Slots, Optical Finish, BT.709 Master & Safe Teardown
Checklist: (1) Route A:
0.000msbeat lock +extend-tailif silent tail; Route B: Demucs-25 dB+ VO-3 dBduck + Start→End AI slots (Gate #5) +float64subpixel zoom (NEVERzoompan); (2) Order:raw/AI → optical finish → 2× HUD; (3) BT.709 matrix-safe encode + 17-pointffprobePASS; (4) Covers + disk prune + cancel keep-alive + stop cloud GPU (Active assignments: 0).
# Optional Route A audio tail extension (bit-exact prefix + FFT key-locked sustain + mechanical click)
python <SKILL_DIR>/scripts/post_motion_and_audio_kit.py extend-tail \
--ref ref/source.mp4 --out audio/master_48k.wav --duration 54.0 --splice-sec 48.2 --click-sec 49.5
# BT.709 matrix-safe archival H.264 encode + automatic 17-point ffprobe + SSIM verification
python <SKILL_DIR>/scripts/forensic_qa_and_encode.py encode \
--frames-dir renders/cycles_2k/frames --audio audio/master_48k.wav \
--out-mp4 renders/final/Product_Master_2K_24fps.mp4 --fps 24 --expected-frames 1296 \
--crf 14 --level 5.1 --preset slow --report-json specs/encode_audit.json
- Read 04_ai_slots_audio_and_covers.md for Route B Demucs/VO, AI Start→End workflow, optical finish API, covers, and teardown.
5. Complete Reference & Script Index
- Scripts (
./scripts/): env_and_asset_preflight.py · analyze_ref_forensic.py · blender5_lookdev_kit.py · universal_pbr_engine.py · colab_render_worker.py · colab_lpt_supervisor.py · cdc_delta_sync.py · forensic_qa_and_encode.py · post_motion_and_audio_kit.py · verify_skill_integrity.py - Deep Guides (
./references/): 01_narrative_and_gates.md · 02_modeling_and_lookdev_recipes.md · 03_cinematography_and_previs.md · 04_ai_slots_audio_and_covers.md · 05_red_team_critic_and_troubleshooting.md · 06_universal_pbr_methodology.md - License & Integrity: LICENSE · MANIFEST.sha256 (
python <SKILL_DIR>/scripts/verify_skill_integrity.py)