Communitygithub.com

blender-commercial-director

End-to-end commercial 3D product animation production system for Blender 5.x + Cycles + Swarm (1080p/2K 24fps CFR). Supports BOTH Mode 1 (Reference-Driven from `ref/source.mp4`) and Mode 2 (Original / No-Reference from user-authored storyboard & lighting brief), as well as Route A (Pure-3D no-VO) and Route B (Hybrid 3D + AI real-action + VO) for any physical product (watch, camera, phone, headphones, perfume, drone, etc.). Covers pre-flight CAD/mesh audit, full-frame forensic beat/key analysis, storyboard/lighting co-authoring, cross-category conflict audit, 1-problem Swarm polish, Phase 5.5 low-res Cycles gate, local single-GPU vs cloud GPU LPT/CDC ops, 5D zero-skip forensic QA, BT.709 matrix-safe encoding, and adversarial Red-Team review.

What is blender-commercial-director?

blender-commercial-director is a Claude Code agent skill that end-to-end commercial 3D product animation production system for Blender 5.x + Cycles + Swarm (1080p/2K 24fps CFR). Supports BOTH Mode 1 (Reference-Driven from `ref/source.mp4`) and Mode 2 (Original / No-Reference from user-authored storyboard & lighting brief), as well as Route A (Pure-3D no-VO) and Route B (Hybrid 3D + AI real-action + VO) for any physical product (watch, camera, phone, headphones, perfume, drone, etc.). Covers pre-flight CAD/mesh audit, full-frame forensic beat/key analysis, storyboard/lighting co-authoring, cross-category conflict audit, 1-problem Swarm polish, Phase 5.5 low-res Cycles gate, local single-GPU vs cloud GPU LPT/CDC ops, 5D zero-skip forensic QA, BT.709 matrix-safe encoding, and adversarial Red-Team review.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Dalizi2026/blender-commercial-director/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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

  1. Place Project Inputs:
    • Mode 1 (有参考视频 · Reference-Driven): Put ref/source.mp4 (+ optional assets/raw/<model>.blend).
    • Mode 2 (无参考视频 · Original Creative): Provide your own storyboard & lighting brief (in chat or specs/user_storyboard_brief.md using the template in 01_narrative_and_gates.md) + optional assets/raw/<model>.blend, ref/moodboard_*.jpg, and audio/bgm.wav.
  2. 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).
  3. 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)

DimensionMode 1 · 有参考视频 (ref/source.mp4)Mode 2 · 无参考视频 (Original Storyboard & Lighting)
Phase 1 ActionRun 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 DesignPreserve 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 BaselineInherit 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 RuleNever 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)

DimensionRoute A · Pure-3D Architectural / HorologicalRoute B · Hybrid 3D + AI Real-Action + VO
Best forCameras, lenses, hardware, mechanical engineering & opticsWearables/handhelds needing human hands, eyes, skin pores, or crowds
AI_SLOT / Audio0 AI slots · 0 VO: music/Foley or FFT key-locked tail extension1–3 AI slots (Start→End) · Demucs htdemucs_ft + custom VO (-3 dB duck, -14 LUFS)
Default Master24.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 through GpuCyclesMutex on renders/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 .blend updates via CDC binary delta (<24 MB chunks), 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

PhaseInputCore Action / ScriptPrimary DeliverableGate
0 & 0.5Local OS + optional assets/raw/*.blendenv_and_asset_preflight.py (host + Blender thin-shell/texture/font audit)specs/env_capabilities.json, specs/asset_preflight.json—
1Mode 1: ref/source.mp4 Mode 2: User brief / moodboard / optional BGMMode 1: analyze_ref_forensic.py Mode 2: Collect/co-author Storyboard & Lighting BriefMode 1: specs/ref_forensic_beats.json + contact sheet Mode 2: specs/user_storyboard_brief.md—
2Phase 1 outputsNarrative/shot breakdown + Physical Conflict Audit (01)specs/director_bible.md, specs/master_schedule.jsonGate #1
3assets/raw/* or specsExternal CAD thickening + Subsystem Swarms OR Pure-Quad bmesh (02)assets/hero_asset.blend (verified in Neutral Calibration Studio)Gate #2
4hero_asset.blend + lighting brief9-recipe Multi-Layer PBR + Physical Studio Softboxes/Flags/Light Linking (02)assets/lookdev_library.blend + 6× 1080p styleframesGate #3
5master_schedule.json + hero_asset.blendContinuous-motion seq01..N.blend + 70/30 Bolt 720p Clay Previs (03)renders/previs/*_clay.mp4 + split + cut-boundary sheetGate #4A
5.5Locked seq01..N.blend2fps Cycles sweep → Full 24fps 540p Cycles draft → Red-Team Critic + 1-Problem Swarm Polish (03, 05)renders/cycles_540p/*_draft.mp4 + dense 16F & 3× cropsGate #4B
6Zero-defect seq01..N.blendLocal --workers 1 OR Cloud LPT --workers 3..4 + CDC sync + 5D Zero-Skip QArenders/cycles_2k/frame_0001..N.png + *_qa_report.json(QA Pass)
7 & 8Verified PNGs + audio + optional AI slotsAudio 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) + coversGate #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.

  1. 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, and AI_SLOT list.
  2. Gate #2 (End of Phase 3): Approve assets/hero_asset.blend (4-view + 10× macro under a Neutral Calibration Studio at Exposure = 0).
  3. Gate #3 (End of Phase 4): Approve 6 Lookdev styleframes (1920×1080 @ 160spp, clip(>248)==0%, dark metal not washed grey, clean optical glass).
  4. Gate #4A (End of Phase 5 · Clay Previs): Approve 720p clay animatic (locks ONLY blocking, camera path, silhouette, timing, BVH zero-penetration).
  5. Gate #4B (End of Phase 5.5 · Low-Res True-Cycles Gate — CRITICAL): Approve full 24fps 960×540 @ 48–64spp true Cycles draft + Red-Team Critic verdict + dense 16F strips + 3× native crops. Never launch 1080p/2K before 540p is 100% defect-free!
  6. 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; ZERO action.fcurves (bake frame-by-frame via keyframe_insert()); scene.sequence_editor.strips; explicitly font.pack() alongside pack_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 KB for 15s @ 16fps; <450 KB for 5s @ 24fps).
  • Local Single-GPU Lock: Concurrent local Cycles checks MUST acquire renders/previs/_gpu_cycles.lock via GpuCyclesMutex in 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.md with the user (shot durations, hero actions, camera lens/move, lighting polarity & key/rim/sweep lighting design, backdrop/transitions, audio source).

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 .blend files; (4) Emit specs/director_bible.md + specs/master_schedule.json.

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 mm closed CNC bodies; (3) Millimeter scale, XY < 0.1 mm, min_z = 0.000 m; (4) audit_duplicate_faces == 0 & articulation-sweep audit_bvh_overlap == 0; (5) Judge dark albedo only in Neutral Calibration Studio (Exposure=0).

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, independent Coat Normal); (2) 8K studio Softbox HDRI + procedural gradient strip lights + #050505 negative-fill flags; (3) Glass bounces (max/transmission/transparent = 16); (4) Light Linking isolates optics/viewfinders/badges & prevents low-weight glossy green speckles; (5) Match Phase 1/2 lighting polarity per shot (clip(>248)==0%).

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 glass 5–7mm ahead of pass-through (clip_start=0.0002m); (5) Zero sampling skips.

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 24fps 960×540 @ 48–64spp (Local --workers 1 or Cloud --workers 3..4 with 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

Phase 6 · 1080p / 2K Master Render & 5D Zero-Skip Forensic QA

Checklist: (1) Verify .blend SHA-256 parity + 0 unpacked images/fonts + 0 invalid drivers; (2) Cloud track: keep dual-layer keep-alive running, sync .blend edits via CDC delta, pull PNGs in <24 MB chunks; (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.000ms beat lock + extend-tail if silent tail; Route B: Demucs -25 dB + VO -3 dB duck + Start→End AI slots (Gate #5) + float64 subpixel zoom (NEVER zoompan); (2) Order: raw/AI → optical finish → 2× HUD; (3) BT.709 matrix-safe encode + 17-point ffprobe PASS; (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

5. Complete Reference & Script Index

Related Skills