Export Director cameras as a USD stage and use runtime shot timing

Address review on #1460:

- Replace the custom JSON manifest and the bpy importer with a plain-text
  .usda stage written from Node (no new dependency) that Blender imports
  natively: Z-up, metersPerUnit 1, one camera per shot with per-frame
  xformOp:transform samples, time codes equal to frame numbers, and lens
  attributes in tenths of a scene unit (Blender multiplies by
  100 * metersPerUnit).
- Take shot timing from shotRuntimeDurationSec/effectiveShotHoldSec, the
  functions Director playback and seeking use, so pack hold overrides,
  minimum holds and evidence-sequence durations match the app.
- Extract runtimeLayerStatesForShot in shotPresentation.js (behaviour
  unchanged) so holds for long scenes are resolved without quadratic work.
- Remove tools/blender Python files; update docs, tests and changelog.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BahZiNcXqNSvAmR5TCuTAu
This commit is contained in:
UBN606andClaude Opus 5.5 committed 2026-11-03 19:34:33 +00:00
1 parent 6b60b9e969
commit 159c0cfcb0
14 files changed
+624 -865

No files matched your search

+5 -5
View File
@@ -6,11 +6,11 @@ automatically.
## Offline Blender camera interchange
`export-blender-camera.mjs` exports cameras from a saved Director scene;
`blender/camera_import.py` imports an editable rig into a new Blender scene.
These tools require no key, environment file, browser or network access and
export no imagery or geometry. Usage, format and synthetic projection checks:
[Blender cameras](../docs/BLENDER-CAMERAS.md).
`export-blender-camera.mjs` exports the cameras of a saved Director scene as a
plain-text USD stage (`.usda`) that Blender opens with File > Import >
Universal Scene Description. It requires no key, environment file, browser,
network access or Blender add-on, and exports no imagery or geometry. Usage,
format and lens units: [Blender cameras](../docs/BLENDER-CAMERAS.md).
Output files go to `output/` by default (gitignored).