@amg555/frameforge-mcp 2.7.3 → 2.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +3 -3
- package/AGENTS.md +33 -0
- package/CHANGELOG.md +49 -0
- package/CLAUDE.md +17 -6
- package/GEMINI.md +63 -0
- package/README.md +216 -426
- package/START_HERE.md +4 -2
- package/package.json +5 -3
- package/plugins/ai-video-editor/README.md +32 -0
- package/plugins/ai-video-editor/SKILL.md +152 -0
- package/plugins/ai-video-editor/assets/fonts/fonts.css +2409 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/anton-400.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/archivo-800.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/cabin-sketch-700.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/dm-sans-700.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/fraunces-600.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/fraunces-700.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/fredoka-700.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/inter-700.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/inter-800.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/inter-tight-800.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/kalam-700.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/ttf/noto-sans-devanagari-700.ttf +0 -0
- package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-400-normal.woff2 +0 -0
- package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-500-normal.woff2 +0 -0
- package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-600-normal.woff2 +0 -0
- package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-700-normal.woff2 +0 -0
- package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-800-normal.woff2 +0 -0
- package/plugins/ai-video-editor/engine/hidpi.js +117 -0
- package/plugins/ai-video-editor/engine/page.html +43 -0
- package/plugins/ai-video-editor/engine/player.js +145 -0
- package/plugins/ai-video-editor/references/example-story-warm-canvas.js +95 -0
- package/plugins/ai-video-editor/references/story-guide.md +112 -0
- package/plugins/ai-video-editor/requirements.txt +4 -0
- package/plugins/ai-video-editor/styles/chalk-talk/base.js +490 -0
- package/plugins/ai-video-editor/styles/chalk-talk/style.json +14 -0
- package/plugins/ai-video-editor/styles/chalk-talk/style.md +41 -0
- package/plugins/ai-video-editor/styles/clean-tech/base.js +447 -0
- package/plugins/ai-video-editor/styles/clean-tech/style.json +15 -0
- package/plugins/ai-video-editor/styles/clean-tech/style.md +38 -0
- package/plugins/ai-video-editor/styles/creator-motion-graphics/base.js +698 -0
- package/plugins/ai-video-editor/styles/creator-motion-graphics/style.json +16 -0
- package/plugins/ai-video-editor/styles/creator-motion-graphics/style.md +39 -0
- package/plugins/ai-video-editor/styles/data-story/base.js +432 -0
- package/plugins/ai-video-editor/styles/data-story/style.json +14 -0
- package/plugins/ai-video-editor/styles/data-story/style.md +38 -0
- package/plugins/ai-video-editor/styles/index.json +103 -0
- package/plugins/ai-video-editor/styles/pop-info/base.js +570 -0
- package/plugins/ai-video-editor/styles/pop-info/style.json +13 -0
- package/plugins/ai-video-editor/styles/pop-info/style.md +37 -0
- package/plugins/ai-video-editor/styles/software-walkthrough/base.js +544 -0
- package/plugins/ai-video-editor/styles/software-walkthrough/style.json +15 -0
- package/plugins/ai-video-editor/styles/software-walkthrough/style.md +38 -0
- package/plugins/ai-video-editor/styles/warm-canvas/base.js +610 -0
- package/plugins/ai-video-editor/styles/warm-canvas/style.json +14 -0
- package/plugins/ai-video-editor/styles/warm-canvas/style.md +37 -0
- package/plugins/aiinsight-shorts/CHANGELOG.md +6 -0
- package/plugins/aiinsight-shorts/README.md +43 -0
- package/plugins/aiinsight-shorts/SKILL.md +138 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/STYLE.md +58 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/data/cues.json +140 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/data/lines.json +67 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/data/words.json +614 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/data/words.txt +102 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/fonts/Inter-Black.otf +0 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/fonts/Inter-ExtraBold.otf +0 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/index.html +17 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/script.json +27 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/sheet.html +11 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/board.js +62 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/captions.js +68 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/engine.js +65 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/human.js +128 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/lib.js +44 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/look2d.js +33 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/sdf.js +79 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/sets.js +107 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/timing.js +23 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/main.js +56 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/sheet.js +79 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/src/shots.js +136 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/tools/capture.mjs +122 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/tools/mix.py +172 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/LICENSE-three.txt +21 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/environments/RoomEnvironment.js +144 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/BokehPass.js +141 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/MaskPass.js +104 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/OutputPass.js +97 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/Pass.js +95 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/RenderPass.js +99 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/BokehShader.js +145 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/CopyShader.js +45 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/OutputShader.js +85 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/three.module.js +6 -0
- package/plugins/aiinsight-shorts/styles/deep-dive/style-sheet.png +0 -0
- package/plugins/aiinsight-shorts/styles/inside-out/STYLE.md +97 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/data/cues.json +178 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/data/lines.json +73 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/data/words.json +662 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/fonts/Inter-Black.otf +0 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/index.html +17 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/script.json +26 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/captions.js +68 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/kit.js +345 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/lib.js +44 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/timing.js +23 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/src/main.js +62 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/src/shots.js +195 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/tools/capture.mjs +122 -0
- package/plugins/aiinsight-shorts/styles/inside-out/example/tools/mix.py +172 -0
- package/plugins/aiinsight-shorts/styles/inside-out/style-sheet.png +0 -0
- package/plugins/aiinsight-shorts/styles/night-file/STYLE.md +36 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/data/cues.json +146 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/data/lines.json +73 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/data/words.json +572 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/data/words.txt +95 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/fonts/FreeMonoBold.ttf +0 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/fonts/Inter-Black.otf +0 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/index.html +18 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/script.json +26 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/sheet.html +13 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/core/board.js +62 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/core/captions.js +49 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/core/engine.js +65 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/core/human.js +128 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/core/kit.js +151 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/core/lib.js +44 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/core/sdf.js +79 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/core/sets3d.js +106 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/core/timing.js +23 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/main.js +56 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/sheet.js +86 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/src/shots.js +130 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/tools/capture.mjs +122 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/tools/mix.py +172 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/LICENSE-three.txt +21 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/environments/RoomEnvironment.js +144 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/BokehPass.js +141 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/MaskPass.js +104 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/OutputPass.js +97 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/Pass.js +95 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/RenderPass.js +99 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/BokehShader.js +145 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/CopyShader.js +45 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/OutputShader.js +85 -0
- package/plugins/aiinsight-shorts/styles/night-file/example/vendor/three.module.js +6 -0
- package/plugins/aiinsight-shorts/styles/night-file/style-sheet.png +0 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/STYLE.md +30 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/cues.json +167 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/lines.json +67 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/words.json +614 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/words.txt +102 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/fonts/Caladea-Bold.ttf +0 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/fonts/Inter-Black.otf +0 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/index.html +15 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/script.json +26 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/sheet.html +12 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/board.js +62 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/captions.js +47 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/kit.js +152 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/lib.js +44 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/timing.js +23 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/main.js +62 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/sheet.js +61 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/shots.js +139 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/tools/capture.mjs +122 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/example/tools/mix.py +172 -0
- package/plugins/aiinsight-shorts/styles/paper-atlas/style-sheet.png +0 -0
- package/plugins/aiinsight-shorts/styles/stick-story/STYLE.md +32 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/data/cues.json +182 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/data/lines.json +79 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/data/words.json +662 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/data/words.txt +110 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/fonts/Inter-Black.otf +0 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/fonts/Inter-ExtraBold.otf +0 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/index.html +13 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/script.json +27 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/sheet.html +10 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/board.js +62 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/captions.js +47 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/kit.js +166 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/lib.js +44 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/timing.js +23 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/src/main.js +62 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/src/sheet.js +64 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/src/shots.js +148 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/tools/capture.mjs +122 -0
- package/plugins/aiinsight-shorts/styles/stick-story/example/tools/mix.py +172 -0
- package/plugins/aiinsight-shorts/styles/stick-story/style-sheet.png +0 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/STYLE.md +51 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/data/cues.json +271 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/data/lines.json +127 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/data/words.json +908 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/data/words.txt +151 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Caladea-Bold.ttf +0 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Inter-Black.otf +0 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Inter-ExtraBold.otf +0 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/index.html +19 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/script.json +37 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/sheet.html +13 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/board.js +62 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/captions.js +56 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/engine.js +65 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/lib.js +44 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/props.js +166 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/timing.js +23 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/toon.js +352 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/world.js +340 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/src/main.js +56 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/src/sheet.js +99 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/src/shots.js +377 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/tools/capture.mjs +122 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/tools/mix.py +204 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/LICENSE-three.txt +21 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/environments/RoomEnvironment.js +144 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/BokehPass.js +141 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/MaskPass.js +104 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/OutputPass.js +97 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/Pass.js +95 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/RenderPass.js +99 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/BokehShader.js +145 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/CopyShader.js +45 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/OutputShader.js +85 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/three.module.js +6 -0
- package/plugins/aiinsight-shorts/styles/tall-tale/style-sheet.png +0 -0
- package/plugins/faceless-shorts/README.md +34 -0
- package/plugins/faceless-shorts/SKILL.md +124 -0
- package/plugins/faceless-shorts/styles/deep-dive/STYLE.md +58 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/data/cues.json +140 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/data/lines.json +67 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/data/words.json +614 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/data/words.txt +102 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/fonts/Inter-Black.otf +0 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/fonts/Inter-ExtraBold.otf +0 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/index.html +16 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/script.json +27 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/sheet.html +10 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/core/board.js +62 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/core/captions.js +68 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/core/engine.js +65 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/core/human.js +128 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/core/lib.js +44 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/core/look2d.js +33 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/core/sdf.js +79 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/core/sets.js +107 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/core/timing.js +23 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/main.js +56 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/sheet.js +79 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/src/shots.js +136 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/tools/capture.mjs +122 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/tools/mix.py +172 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/LICENSE-three.txt +21 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/environments/RoomEnvironment.js +144 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/BokehPass.js +141 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/MaskPass.js +104 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/OutputPass.js +97 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/Pass.js +95 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/RenderPass.js +99 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/BokehShader.js +145 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/CopyShader.js +45 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/OutputShader.js +85 -0
- package/plugins/faceless-shorts/styles/deep-dive/example/vendor/three.module.js +6 -0
- package/plugins/faceless-shorts/styles/deep-dive/style-sheet.png +0 -0
- package/plugins/faceless-shorts/styles/inside-out/STYLE.md +97 -0
- package/plugins/faceless-shorts/styles/inside-out/example/data/cues.json +178 -0
- package/plugins/faceless-shorts/styles/inside-out/example/data/lines.json +73 -0
- package/plugins/faceless-shorts/styles/inside-out/example/data/words.json +662 -0
- package/plugins/faceless-shorts/styles/inside-out/example/fonts/Inter-Black.otf +0 -0
- package/plugins/faceless-shorts/styles/inside-out/example/index.html +16 -0
- package/plugins/faceless-shorts/styles/inside-out/example/script.json +26 -0
- package/plugins/faceless-shorts/styles/inside-out/example/src/core/captions.js +68 -0
- package/plugins/faceless-shorts/styles/inside-out/example/src/core/kit.js +345 -0
- package/plugins/faceless-shorts/styles/inside-out/example/src/core/lib.js +44 -0
- package/plugins/faceless-shorts/styles/inside-out/example/src/core/timing.js +23 -0
- package/plugins/faceless-shorts/styles/inside-out/example/src/main.js +62 -0
- package/plugins/faceless-shorts/styles/inside-out/example/src/shots.js +195 -0
- package/plugins/faceless-shorts/styles/inside-out/example/tools/capture.mjs +122 -0
- package/plugins/faceless-shorts/styles/inside-out/example/tools/mix.py +172 -0
- package/plugins/faceless-shorts/styles/inside-out/style-sheet.png +0 -0
- package/plugins/faceless-shorts/styles/night-file/STYLE.md +36 -0
- package/plugins/faceless-shorts/styles/night-file/example/data/cues.json +146 -0
- package/plugins/faceless-shorts/styles/night-file/example/data/lines.json +73 -0
- package/plugins/faceless-shorts/styles/night-file/example/data/words.json +572 -0
- package/plugins/faceless-shorts/styles/night-file/example/data/words.txt +95 -0
- package/plugins/faceless-shorts/styles/night-file/example/fonts/FreeMonoBold.ttf +0 -0
- package/plugins/faceless-shorts/styles/night-file/example/fonts/Inter-Black.otf +0 -0
- package/plugins/faceless-shorts/styles/night-file/example/index.html +16 -0
- package/plugins/faceless-shorts/styles/night-file/example/script.json +26 -0
- package/plugins/faceless-shorts/styles/night-file/example/sheet.html +11 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/core/board.js +62 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/core/captions.js +49 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/core/engine.js +65 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/core/human.js +128 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/core/kit.js +151 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/core/lib.js +44 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/core/sdf.js +79 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/core/sets3d.js +106 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/core/timing.js +23 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/main.js +56 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/sheet.js +86 -0
- package/plugins/faceless-shorts/styles/night-file/example/src/shots.js +130 -0
- package/plugins/faceless-shorts/styles/night-file/example/tools/capture.mjs +122 -0
- package/plugins/faceless-shorts/styles/night-file/example/tools/mix.py +172 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/LICENSE-three.txt +21 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/environments/RoomEnvironment.js +144 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/BokehPass.js +141 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/MaskPass.js +104 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/OutputPass.js +97 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/Pass.js +95 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/RenderPass.js +99 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/BokehShader.js +145 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/CopyShader.js +45 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/OutputShader.js +85 -0
- package/plugins/faceless-shorts/styles/night-file/example/vendor/three.module.js +6 -0
- package/plugins/faceless-shorts/styles/night-file/style-sheet.png +0 -0
- package/plugins/faceless-shorts/styles/paper-atlas/STYLE.md +30 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/data/cues.json +167 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/data/lines.json +67 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/data/words.json +614 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/data/words.txt +102 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/fonts/Caladea-Bold.ttf +0 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/fonts/Inter-Black.otf +0 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/index.html +13 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/script.json +26 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/sheet.html +10 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/board.js +62 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/captions.js +47 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/kit.js +152 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/lib.js +44 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/timing.js +23 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/src/main.js +62 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/src/sheet.js +61 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/src/shots.js +139 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/tools/capture.mjs +122 -0
- package/plugins/faceless-shorts/styles/paper-atlas/example/tools/mix.py +172 -0
- package/plugins/faceless-shorts/styles/paper-atlas/style-sheet.png +0 -0
- package/plugins/faceless-shorts/styles/stick-story/STYLE.md +32 -0
- package/plugins/faceless-shorts/styles/stick-story/example/data/cues.json +182 -0
- package/plugins/faceless-shorts/styles/stick-story/example/data/lines.json +79 -0
- package/plugins/faceless-shorts/styles/stick-story/example/data/words.json +662 -0
- package/plugins/faceless-shorts/styles/stick-story/example/data/words.txt +110 -0
- package/plugins/faceless-shorts/styles/stick-story/example/fonts/Inter-Black.otf +0 -0
- package/plugins/faceless-shorts/styles/stick-story/example/fonts/Inter-ExtraBold.otf +0 -0
- package/plugins/faceless-shorts/styles/stick-story/example/index.html +12 -0
- package/plugins/faceless-shorts/styles/stick-story/example/script.json +27 -0
- package/plugins/faceless-shorts/styles/stick-story/example/sheet.html +9 -0
- package/plugins/faceless-shorts/styles/stick-story/example/src/core/board.js +62 -0
- package/plugins/faceless-shorts/styles/stick-story/example/src/core/captions.js +47 -0
- package/plugins/faceless-shorts/styles/stick-story/example/src/core/kit.js +166 -0
- package/plugins/faceless-shorts/styles/stick-story/example/src/core/lib.js +44 -0
- package/plugins/faceless-shorts/styles/stick-story/example/src/core/timing.js +23 -0
- package/plugins/faceless-shorts/styles/stick-story/example/src/main.js +62 -0
- package/plugins/faceless-shorts/styles/stick-story/example/src/sheet.js +64 -0
- package/plugins/faceless-shorts/styles/stick-story/example/src/shots.js +148 -0
- package/plugins/faceless-shorts/styles/stick-story/example/tools/capture.mjs +122 -0
- package/plugins/faceless-shorts/styles/stick-story/example/tools/mix.py +172 -0
- package/plugins/faceless-shorts/styles/stick-story/style-sheet.png +0 -0
- package/plugins/faceless-shorts/styles/tall-tale/STYLE.md +51 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/data/cues.json +271 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/data/lines.json +127 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/data/words.json +908 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/data/words.txt +151 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Caladea-Bold.ttf +0 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Inter-Black.otf +0 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Inter-ExtraBold.otf +0 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/index.html +17 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/script.json +37 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/sheet.html +11 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/src/core/board.js +62 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/src/core/captions.js +56 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/src/core/engine.js +65 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/src/core/lib.js +44 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/src/core/props.js +166 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/src/core/timing.js +23 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/src/core/toon.js +352 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/src/core/world.js +340 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/src/main.js +56 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/src/sheet.js +99 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/src/shots.js +377 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/tools/capture.mjs +122 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/tools/mix.py +204 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/LICENSE-three.txt +21 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/environments/RoomEnvironment.js +144 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/BokehPass.js +141 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/MaskPass.js +104 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/OutputPass.js +97 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/Pass.js +95 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/RenderPass.js +99 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/BokehShader.js +145 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/CopyShader.js +45 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/OutputShader.js +85 -0
- package/plugins/faceless-shorts/styles/tall-tale/example/vendor/three.module.js +6 -0
- package/plugins/faceless-shorts/styles/tall-tale/style-sheet.png +0 -0
- package/plugins/motion-styles/LIBRARY.md +896 -0
- package/plugins/motion-styles/README.md +29 -0
- package/plugins/motion-styles/SKILL.md +70 -0
- package/plugins/motion-styles/catalog.json +2253 -0
- package/plugins/motion-styles/prompts/bio-glow.md +149 -0
- package/plugins/motion-styles/prompts/blueprint.md +145 -0
- package/plugins/motion-styles/prompts/breaking-desk.md +147 -0
- package/plugins/motion-styles/prompts/callout-kit.md +147 -0
- package/plugins/motion-styles/prompts/chalk-talk.md +153 -0
- package/plugins/motion-styles/prompts/chat-story.md +143 -0
- package/plugins/motion-styles/prompts/clay-diorama.md +149 -0
- package/plugins/motion-styles/prompts/clean-tech.md +147 -0
- package/plugins/motion-styles/prompts/comic-panels.md +145 -0
- package/plugins/motion-styles/prompts/cosmic-scale.md +147 -0
- package/plugins/motion-styles/prompts/creator-motion.md +149 -0
- package/plugins/motion-styles/prompts/data-city.md +149 -0
- package/plugins/motion-styles/prompts/data-story.md +147 -0
- package/plugins/motion-styles/prompts/deep-layers.md +147 -0
- package/plugins/motion-styles/prompts/doc-cinema.md +145 -0
- package/plugins/motion-styles/prompts/evidence-board.md +145 -0
- package/plugins/motion-styles/prompts/exploded-view.md +149 -0
- package/plugins/motion-styles/prompts/glass-icons.md +147 -0
- package/plugins/motion-styles/prompts/glitch-pack.md +145 -0
- package/plugins/motion-styles/prompts/globe-arcs.md +147 -0
- package/plugins/motion-styles/prompts/headline-backdrop.md +145 -0
- package/plugins/motion-styles/prompts/iso-cutaway.md +147 -0
- package/plugins/motion-styles/prompts/isotype.md +145 -0
- package/plugins/motion-styles/prompts/karaoke-subs.md +145 -0
- package/plugins/motion-styles/prompts/low-poly-atlas.md +149 -0
- package/plugins/motion-styles/prompts/lower-thirds.md +147 -0
- package/plugins/motion-styles/prompts/marker-board.md +145 -0
- package/plugins/motion-styles/prompts/market-tape.md +145 -0
- package/plugins/motion-styles/prompts/math-canvas.md +145 -0
- package/plugins/motion-styles/prompts/myth-or-fact.md +145 -0
- package/plugins/motion-styles/prompts/neon-line.md +145 -0
- package/plugins/motion-styles/prompts/paper-craft.md +145 -0
- package/plugins/motion-styles/prompts/parchment-map.md +147 -0
- package/plugins/motion-styles/prompts/physics-toybox.md +147 -0
- package/plugins/motion-styles/prompts/pixel-quest.md +145 -0
- package/plugins/motion-styles/prompts/podcast-clip.md +147 -0
- package/plugins/motion-styles/prompts/pop-info.md +145 -0
- package/plugins/motion-styles/prompts/product-turntable.md +149 -0
- package/plugins/motion-styles/prompts/punch-captions.md +145 -0
- package/plugins/motion-styles/prompts/quiz-countdown.md +145 -0
- package/plugins/motion-styles/prompts/quote-cinema.md +145 -0
- package/plugins/motion-styles/prompts/recipe-steps.md +145 -0
- package/plugins/motion-styles/prompts/rubber-hose-reel.md +145 -0
- package/plugins/motion-styles/prompts/shadow-puppets.md +145 -0
- package/plugins/motion-styles/prompts/size-lineup.md +149 -0
- package/plugins/motion-styles/prompts/software-walkthrough.md +147 -0
- package/plugins/motion-styles/prompts/stack-split.md +145 -0
- package/plugins/motion-styles/prompts/sticker-pop.md +145 -0
- package/plugins/motion-styles/prompts/storybook.md +145 -0
- package/plugins/motion-styles/prompts/swiss-grid.md +145 -0
- package/plugins/motion-styles/prompts/synth-grid.md +147 -0
- package/plugins/motion-styles/prompts/tactics-board.md +145 -0
- package/plugins/motion-styles/prompts/terminal.md +145 -0
- package/plugins/motion-styles/prompts/tier-list.md +143 -0
- package/plugins/motion-styles/prompts/timeline-rail.md +145 -0
- package/plugins/motion-styles/prompts/top-5-countdown.md +145 -0
- package/plugins/motion-styles/prompts/versus-split.md +145 -0
- package/plugins/motion-styles/prompts/vhs-camcorder.md +145 -0
- package/plugins/motion-styles/prompts/visual-novel.md +145 -0
- package/plugins/motion-styles/prompts/warm-canvas.md +145 -0
- package/plugins/motion-styles/prompts/woodcut-tale.md +145 -0
- package/plugins/motion-styles/prompts/zine-collage.md +145 -0
- package/plugins/motion-styles/sources/bio-glow.html +639 -0
- package/plugins/motion-styles/sources/blueprint.html +617 -0
- package/plugins/motion-styles/sources/breaking-desk.html +585 -0
- package/plugins/motion-styles/sources/callout-kit.html +586 -0
- package/plugins/motion-styles/sources/chalk-talk.html +597 -0
- package/plugins/motion-styles/sources/chat-story.html +597 -0
- package/plugins/motion-styles/sources/clay-diorama.html +681 -0
- package/plugins/motion-styles/sources/clean-tech.html +554 -0
- package/plugins/motion-styles/sources/comic-panels.html +608 -0
- package/plugins/motion-styles/sources/cosmic-scale.html +628 -0
- package/plugins/motion-styles/sources/creator-motion.html +805 -0
- package/plugins/motion-styles/sources/data-city.html +613 -0
- package/plugins/motion-styles/sources/data-story.html +539 -0
- package/plugins/motion-styles/sources/deep-layers.html +624 -0
- package/plugins/motion-styles/sources/doc-cinema.html +590 -0
- package/plugins/motion-styles/sources/evidence-board.html +610 -0
- package/plugins/motion-styles/sources/exploded-view.html +618 -0
- package/plugins/motion-styles/sources/glass-icons.html +612 -0
- package/plugins/motion-styles/sources/glitch-pack.html +583 -0
- package/plugins/motion-styles/sources/globe-arcs.html +621 -0
- package/plugins/motion-styles/sources/headline-backdrop.html +584 -0
- package/plugins/motion-styles/sources/iso-cutaway.html +621 -0
- package/plugins/motion-styles/sources/isotype.html +588 -0
- package/plugins/motion-styles/sources/karaoke-subs.html +577 -0
- package/plugins/motion-styles/sources/low-poly-atlas.html +621 -0
- package/plugins/motion-styles/sources/lower-thirds.html +582 -0
- package/plugins/motion-styles/sources/marker-board.html +598 -0
- package/plugins/motion-styles/sources/market-tape.html +598 -0
- package/plugins/motion-styles/sources/math-canvas.html +592 -0
- package/plugins/motion-styles/sources/myth-or-fact.html +587 -0
- package/plugins/motion-styles/sources/neon-line.html +597 -0
- package/plugins/motion-styles/sources/paper-craft.html +612 -0
- package/plugins/motion-styles/sources/parchment-map.html +624 -0
- package/plugins/motion-styles/sources/physics-toybox.html +617 -0
- package/plugins/motion-styles/sources/pixel-quest.html +609 -0
- package/plugins/motion-styles/sources/podcast-clip.html +585 -0
- package/plugins/motion-styles/sources/pop-info.html +677 -0
- package/plugins/motion-styles/sources/product-turntable.html +611 -0
- package/plugins/motion-styles/sources/punch-captions.html +583 -0
- package/plugins/motion-styles/sources/quiz-countdown.html +593 -0
- package/plugins/motion-styles/sources/quote-cinema.html +581 -0
- package/plugins/motion-styles/sources/recipe-steps.html +599 -0
- package/plugins/motion-styles/sources/rubber-hose-reel.html +627 -0
- package/plugins/motion-styles/sources/shadow-puppets.html +609 -0
- package/plugins/motion-styles/sources/size-lineup.html +620 -0
- package/plugins/motion-styles/sources/software-walkthrough.html +651 -0
- package/plugins/motion-styles/sources/stack-split.html +588 -0
- package/plugins/motion-styles/sources/sticker-pop.html +587 -0
- package/plugins/motion-styles/sources/storybook.html +600 -0
- package/plugins/motion-styles/sources/swiss-grid.html +590 -0
- package/plugins/motion-styles/sources/synth-grid.html +614 -0
- package/plugins/motion-styles/sources/tactics-board.html +608 -0
- package/plugins/motion-styles/sources/terminal.html +593 -0
- package/plugins/motion-styles/sources/tier-list.html +600 -0
- package/plugins/motion-styles/sources/timeline-rail.html +598 -0
- package/plugins/motion-styles/sources/top-5-countdown.html +589 -0
- package/plugins/motion-styles/sources/versus-split.html +592 -0
- package/plugins/motion-styles/sources/vhs-camcorder.html +587 -0
- package/plugins/motion-styles/sources/visual-novel.html +623 -0
- package/plugins/motion-styles/sources/warm-canvas.html +742 -0
- package/plugins/motion-styles/sources/woodcut-tale.html +598 -0
- package/plugins/motion-styles/sources/zine-collage.html +594 -0
- package/plugins/video-pipeline/.claude-plugin/plugin.json +2 -2
- package/plugins/video-pipeline/skills/.upstream-skills.json +156 -143
- package/plugins/video-pipeline/skills/video-pipeline/references/mcp-tools.md +3 -3
- package/scripts/deep-validate.js +3 -2
- package/src/audio-mixer/mixer.js +69 -0
- package/src/cli/make.js +19 -0
- package/src/harness/lib/browser.mjs +22 -1
- package/src/harness/lib/capture.mjs +33 -11
- package/src/harness/lib/jobs.mjs +16 -1
- package/src/mcp-server/server.js +726 -10
- package/src/pipeline/providers.js +77 -17
- package/src/skills/sync-upstream.js +15 -3
- package/src/utils/media-downloader.js +7 -0
- package/src/utils/tool-installer.js +212 -0
- package/src/utils/transcribe.js +9 -1
- package/src/video-renderer/renderer.js +68 -38
- package/src/video-renderer/scene-animator.js +50 -15
- package/src/workflows/assets.js +49 -5
- package/src/workflows/render.js +2 -0
- package/src/workflows/script.js +14 -3
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
// THE GIRL WHO WAS MAILED TO GRANDMA: the shot list (Tall Tale 3D example).
|
|
2
|
+
// A shot: { id, at, note, draw(lt, d, t, blit) }: pose the cut-out people, move the camera, E.render(...), blit(),
|
|
3
|
+
// then any 2D overlay. Every shot moves the camera. Times come from the voice: cut(i) = just before line i,
|
|
4
|
+
// Wd('word', i) = when that word is said.
|
|
5
|
+
import * as THREE from 'three';
|
|
6
|
+
import { ctx, clamp, lerp, seg, eo, eio, eob } from './core/lib.js';
|
|
7
|
+
import { L, Wd, T } from './core/timing.js';
|
|
8
|
+
import { camera } from './core/engine.js';
|
|
9
|
+
import * as WD from './core/world.js';
|
|
10
|
+
import * as PR from './core/props.js';
|
|
11
|
+
import { Toon, PROPS } from './core/toon.js';
|
|
12
|
+
|
|
13
|
+
const V3 = (x, y, z) => new THREE.Vector3(x, y, z);
|
|
14
|
+
const mix = (a, b, k) => a.clone().lerp(b, k);
|
|
15
|
+
const talk = (t, on = 1) => (on ? 0.25 + 0.75 * Math.abs(Math.sin(t * 13)) * (0.6 + 0.4 * Math.sin(t * 5.3)) : 0);
|
|
16
|
+
const blink = (t, off = 0) => (((t + off) % 3.3) < 0.12 ? 1 : 0);
|
|
17
|
+
|
|
18
|
+
// the cast (original characters, Tall Tale recipe)
|
|
19
|
+
const LOOK = {
|
|
20
|
+
may: { body: '#7FC8E8', hat: 'bow', hatCol: '#D8343F', hairCol: '#7A4A2E', kid: true, neck: 'collar', pattern: 'stamps', stamps: 0 },
|
|
21
|
+
dad: { body: '#6FA35A', pattern: 'overalls', patCol: '#3E5FA8', hat: 'boater', hatCol: '#E8C77A', band: '#B5372E', extra: ['mustache'] },
|
|
22
|
+
mom: { body: '#B98ACF', hat: 'bun', hatCol: '#7A4A2E', pattern: 'apron' },
|
|
23
|
+
clerk: { body: '#4FB3A9', hat: 'visor', hatCol: '#2F8F5B', neck: 'collar', pattern: 'vest', patCol: '#2B5E73', extra: ['pencil'] },
|
|
24
|
+
grandma: { body: '#E58A6A', hat: 'bun', hatCol: '#D9D9E2', pattern: 'apron', patCol: '#FFF4E0', extra: ['glasses', 'blush'] },
|
|
25
|
+
cousin: { body: '#3E5FA8', hat: 'mailcap', hatCol: '#2E4E8A', neck: 'tie', neckCol: '#E2B33C' },
|
|
26
|
+
boss: { body: '#4A4560', hat: 'tophat', hatCol: '#2A2638', neck: 'bowtie', neckCol: '#D8343F', dots: 1, pattern: 'vest', patCol: '#2A2638', extra: ['monocle', 'mustache'] },
|
|
27
|
+
sister: { body: '#F2C230', hat: 'bow', hatCol: '#3C6FB6', hairCol: '#3A2A22', kid: true, pattern: 'stamps', stamps: 4, extra: ['freckles'] },
|
|
28
|
+
};
|
|
29
|
+
const person = (k, opts) => new Toon({ ...LOOK[k], extra: [...(LOOK[k].extra || [])] }, opts);
|
|
30
|
+
|
|
31
|
+
export function buildShots(E) {
|
|
32
|
+
const S = [], CUES = [], add = (o) => (S.push(o), o), cue = (t, type, o = {}) => CUES.push({ t: +t.toFixed(3), type, ...o });
|
|
33
|
+
const cut = (i) => (i === 0 ? 0 : L(i) - 0.06);
|
|
34
|
+
const cam = camera(36);
|
|
35
|
+
const LOOKS = { street: { bloom: 0.15, aperture: 0.0012, maxblur: 0.008 }, room: { bloom: 0.3, aperture: 0.001, maxblur: 0.008 }, field: { bloom: 0.25, aperture: 0.001, maxblur: 0.007 } };
|
|
36
|
+
const shoot = (scene, people, from, to, at, at2, k, look, focus) => {
|
|
37
|
+
if (cam.fov !== (look.fov || 36)) { cam.fov = look.fov || 36; cam.updateProjectionMatrix(); }
|
|
38
|
+
cam.position.copy(mix(from, to, k)); cam.lookAt(at2 ? mix(at, at2, k) : at);
|
|
39
|
+
people.forEach((p) => p.face(cam));
|
|
40
|
+
E.render(scene, cam, { ...look, focus: focus ?? cam.position.distanceTo(at2 ? mix(at, at2, k) : at) });
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// ── sets ─────────────────────────────────────────────────────────────
|
|
44
|
+
const SHOP_ORDER = [['BAKERY', '#C9603F', 'brick', '#D8343F'], ['GENERAL STORE', '#6FA3B8', 'wood', null], ['BARBER', '#E3C16F', 'wood', '#3C6FB6'], ['GRAND HOTEL', '#9E4A3A', 'brick', null],
|
|
45
|
+
['TAILOR', '#B98ACF', 'wood', '#2E4E3F'], ['POST OFFICE', '#7FA36A', 'brick', '#2E4E8A'], ['HARDWARE', '#B5553C', 'brick', '#F2C230'], ['CAFE', '#E58A6A', 'wood', '#2E4E3F'],
|
|
46
|
+
['BANK', '#C7B79A', 'brick', null], ['PHARMACY', '#5FA39A', 'wood', '#D8343F'], ['SHOES', '#D9A34A', 'wood', null], ['THEATER', '#A3485A', 'brick', '#F2C230']];
|
|
47
|
+
const ST = WD.mainStreet(E, { shops: SHOP_ORDER });
|
|
48
|
+
ST.sun.key.target.position.set(-4, 0, 0); ST.sun.key.position.set(5, 13, 6);
|
|
49
|
+
const PO = ST.buildings.find((b) => b.name === 'POST OFFICE'); // front at x -6.2, centred on PO.z
|
|
50
|
+
const stDad = person('dad'), stMom = person('mom'), stMay = person('may', { height: 1.4 }), stMan = person('cousin');
|
|
51
|
+
[stDad, stMom, stMay, stMan].forEach((p) => ST.scene.add(p.group));
|
|
52
|
+
const piles = []; for (let i = 0; i < 6; i++) { const p = PR.parcel(0.5 + (i % 3) * 0.1, 0.32 + (i % 2) * 0.1, 0.42); p.position.set(-5.6 + (i % 2) * 0.55, 0.18 + Math.floor(i / 2) * 0.0, PO.z - 1.6 + i * 0.45); p.rotation.y = i * 0.4; ST.scene.add(p); piles.push(p); }
|
|
53
|
+
const streetPeople = () => [...ST.people, stDad, stMom, stMay, stMan];
|
|
54
|
+
|
|
55
|
+
const view = (scene, from, look, people = []) => { const c = new THREE.PerspectiveCamera(42, 4 / 3, 0.1, 800); c.position.copy(from); c.lookAt(look); people.forEach((p) => p.face(c)); const t = WD.snapshot(E, scene, c); t.wrapS = THREE.RepeatWrapping; return t; };
|
|
56
|
+
|
|
57
|
+
// post office inside: counter on the right (x 2.2..3.2), clerk behind it, scale on the counter
|
|
58
|
+
const IN = WD.interior(E, { wall: '#2F6B5A', motif: '#3B7D69', ceiling: '#5A3A2A', signText: 'PARCEL POST', view: view(ST.scene, V3(2, 1.8, -12), V3(-3, 2.2, 10), ST.people), picture: false });
|
|
59
|
+
{ const cb = PR.cubbies(2.6, 2.2); cb.position.set(-2.4, 0.95, -6.75); IN.scene.add(cb);
|
|
60
|
+
const sb = WD.signBoard('U.S. POST OFFICE', { w: 3.0, h: 0.5, bg: '#2E4E8A', fg: '#F2E6CF' }); sb.position.set(0, 3.55, -6.86); IN.scene.add(sb);
|
|
61
|
+
[[-3.3, -4.6], [-3.2, -3.9], [-3.4, -3.2]].forEach(([x, z], i) => { const s = PR.mailSack(0.9 + i * 0.1); s.position.set(x, 0, z); IN.scene.add(s); });
|
|
62
|
+
[[-3.3, -1.8, 0], [-3.1, -1.3, 0.32]].forEach(([x, z, y], i) => { const p = PR.parcel(0.6, 0.4, 0.5); p.position.set(x, y, z); p.rotation.y = i; IN.scene.add(p); }); }
|
|
63
|
+
const scale = PR.platformScale(); scale.position.set(2.7, 1.18, -2.0); IN.scene.add(scale);
|
|
64
|
+
const chicks = PR.chickCrate(6); chicks.position.set(2.7, 1.18, -3.6); chicks.rotation.y = -0.5; chicks.visible = false; IN.scene.add(chicks);
|
|
65
|
+
const box = PR.parcel(0.9, 0.55, 0.7, true); box.position.set(1.2, 0, -1.9); box.visible = false; IN.scene.add(box);
|
|
66
|
+
const inClerk = person('clerk'), inMay = person('may', { height: 1.4 }), inDad = person('dad'), inMom = person('mom'), inSis = person('sister', { height: 1.4 });
|
|
67
|
+
inClerk.at(3.55, 0, -2.5); inSis.at(1.2, 0, -1.95); inSis.group.visible = false;
|
|
68
|
+
[inClerk, inMay, inDad, inMom, inSis].forEach((p) => IN.scene.add(p.group));
|
|
69
|
+
const inPeople = [inClerk, inMay, inDad, inMom, inSis];
|
|
70
|
+
|
|
71
|
+
// the countryside: home (left) and grandma's house (right), a signpost
|
|
72
|
+
const MD = WD.meadow(E, { fenceOn: false }); MD.sun.key.position.set(9, 14, 8); MD.sun.key.target.position.set(5, 0, -6);
|
|
73
|
+
Object.assign(MD.sun.key.shadow.camera, { left: -22, right: 22, top: 22, bottom: -22 }); MD.sun.key.shadow.camera.updateProjectionMatrix();
|
|
74
|
+
const home = PR.house({ wall: '#F2E6CF', roof: '#B5553C', door: '#3C6FB6' }); home.position.set(0, 0, -6); MD.scene.add(home);
|
|
75
|
+
const gma = PR.house({ wall: '#F2C9D6', roof: '#3E5FA8', door: '#D8343F', trim: '#FFFFFF' }); gma.position.set(12, 0, -9); gma.rotation.y = -0.35; MD.scene.add(gma);
|
|
76
|
+
const post = PR.signpost([['LEWISTON 73 MI', 'r'], ['GRANGEVILLE', 'l']]); post.position.set(5.5, 0, 2.5); MD.scene.add(post);
|
|
77
|
+
{ const f = WD.fence(10); f.position.set(-12, 0, -1); MD.scene.add(f); const f2 = WD.fence(8); f2.position.set(15, 0, -2); MD.scene.add(f2); }
|
|
78
|
+
const mdDad = person('dad'), mdMom = person('mom'), mdMay = person('may', { height: 1.4 }), mdGma = person('grandma'), mdCousin = person('cousin');
|
|
79
|
+
[mdDad, mdMom, mdMay, mdGma, mdCousin].forEach((p) => MD.scene.add(p.group));
|
|
80
|
+
const gDoor = new THREE.Vector3(); const gmaFront = (dx, dz) => gma.localToWorld(V3(dx, 0, dz));
|
|
81
|
+
const mdPeople = [mdDad, mdMom, mdMay, mdGma, mdCousin];
|
|
82
|
+
|
|
83
|
+
// the railway: a second meadow with tracks and the mail train
|
|
84
|
+
const TR = WD.meadow(E, { fenceOn: false, treesOn: false }); TR.sun.key.position.set(6, 12, 10); TR.sun.key.target.position.set(0, 0, -12);
|
|
85
|
+
const rl = PR.rails(400); rl.position.set(0, 0, -12); TR.scene.add(rl); const tr = PR.train(); tr.position.set(0, 0, -12); TR.scene.add(tr);
|
|
86
|
+
{ const p = WD.pole(6); for (let x = -60; x < 80; x += 14) { const q = p.clone(); q.position.set(x, 0, -15); TR.scene.add(q); } }
|
|
87
|
+
|
|
88
|
+
// the mail car (inside): sorting counter on the right, cubbies on the left, the meadow rolling past the window
|
|
89
|
+
const MC = WD.interior(E, { w: 4.4, depth: 8, h: 3.4, wall: '#7A5236', motif: '#86603F', floor: '#8A5A36', ceiling: '#3A2A20', signText: null, picture: false, litter: false,
|
|
90
|
+
view: (tr.position.x = 500, view(TR.scene, V3(0, 1.6, 8), V3(0, 2.2, -40))) });
|
|
91
|
+
MC.window.material.map.repeat.set(0.5, 1);
|
|
92
|
+
{ const cb = PR.cubbies(3.4, 1.6); cb.position.set(-2.0, 1.0, -4.2); cb.rotation.y = Math.PI / 2; MC.scene.add(cb);
|
|
93
|
+
[[-1.3, -5.6, 1], [-0.7, -6.2, 0.9], [-1.5, -6.4, 1.1], [0.2, -6.5, 0.95]].forEach(([x, z, s]) => { const m = PR.mailSack(s); m.position.set(x, 0, z); MC.scene.add(m); }); }
|
|
94
|
+
const mcMay = person('may', { height: 1.4 }), mcCousin = person('cousin'); [mcMay, mcCousin].forEach((p) => MC.scene.add(p.group));
|
|
95
|
+
mcMay.restyle({ stamps: 10 });
|
|
96
|
+
const seat = PR.mailSack(1.15); seat.position.set(-0.75, 0, -3.95); MC.scene.add(seat);
|
|
97
|
+
|
|
98
|
+
// the Postmaster General's office
|
|
99
|
+
const OF = WD.interior(E, { w: 7, depth: 6, wall: '#2E4E8A', motif: '#3A5E9C', ceiling: '#2A2638', floor: '#7A3E24', signText: null, counterOn: false, litter: false,
|
|
100
|
+
view: view(ST.scene, V3(0, 6, 6), V3(0, 3, -40)) });
|
|
101
|
+
const dk = PR.desk(2.4); dk.position.set(0.4, 0, -3.2); OF.scene.add(dk);
|
|
102
|
+
const notice = PR.poster(['NOTICE', '!NO PEOPLE', 'MAY BE SENT', 'BY MAIL', 'POSTMASTER GENERAL'], { w: 1.3, h: 1.7 }); notice.position.set(-2.4, 2.1, -5.87); OF.scene.add(notice);
|
|
103
|
+
{ const fl = WD.signBoard('POSTMASTER GENERAL', { w: 2.4, h: 0.4, bg: '#2A2638', fg: '#E2B33C' }); fl.position.set(0, 3.55, -5.88); OF.scene.add(fl);
|
|
104
|
+
const p = PR.parcel(0.4, 0.15, 0.3); p.position.set(1.2, 0.88, -3.1); OF.scene.add(p); }
|
|
105
|
+
const ofBoss = person('boss'); ofBoss.at(0.4, 0, -3.95); OF.scene.add(ofBoss.group);
|
|
106
|
+
|
|
107
|
+
// ── 1 · HOOK, outside: "In 1914, a couple in Idaho" (crane down the street to the post office) ──
|
|
108
|
+
const s1b = Wd('mailed', 0) - 0.12;
|
|
109
|
+
{ const st = cut(0);
|
|
110
|
+
add({ id: 'S01', at: st, note: 'crane down main street to the post office; the family arrives', draw(lt, d, t, blit) {
|
|
111
|
+
const k = eio(clamp(lt / d)); const z = PO.z;
|
|
112
|
+
stDad.at(-5.0, 0.18, z - 3.2 + k * 1.6); stMom.at(-4.6, 0.18, z - 2.4 + k * 1.6); stMay.at(-4.8, 0.18, z - 2.8 + k * 1.6);
|
|
113
|
+
[stDad, stMom].forEach((p, i) => p.set({ legs: 'walk', phase: t * 7 + i * 2, mood: 'happy', blink: blink(t, i) }));
|
|
114
|
+
stMay.set({ legs: 'walk', phase: t * 9, mood: 'happy', armL: [40, 20], blink: blink(t, 1.3) });
|
|
115
|
+
stMan.group.visible = false; piles.forEach((p) => (p.visible = false));
|
|
116
|
+
shoot(ST.scene, streetPeople(), V3(0.5, 6.0, z - 22), V3(-2.3, 1.7, z - 6.4), V3(-2.5, 3.0, z), V3(-4.8, 1.25, z - 1.5), k, { ...LOOKS.street, fov: 44 });
|
|
117
|
+
blit();
|
|
118
|
+
} });
|
|
119
|
+
cue(st + 0.05, 'whoosh', { gain: 0.6 }); cue(Wd('1914', 0), 'ding', { gain: 0.7 }); }
|
|
120
|
+
|
|
121
|
+
// ── 2 · "mailed their five year old daughter" (inside: May on the scale, clerk shocked) ──
|
|
122
|
+
const counterScene = (lt, t, o = {}) => {
|
|
123
|
+
inMay.at(2.7, 1.26, -1.95); inDad.at(1.65, 0, -2.75); inMom.at(1.0, 0, -3.4);
|
|
124
|
+
inDad.group.visible = o.dad ?? true; inMom.group.visible = o.mom ?? true; inMay.group.visible = o.may ?? true;
|
|
125
|
+
};
|
|
126
|
+
{ const st = s1b;
|
|
127
|
+
add({ id: 'S02', at: st, note: 'May stands on the post-office scale, clerk gasps, parents proud', draw(lt, d, t, blit) {
|
|
128
|
+
const k = eo(clamp(lt / d)); counterScene(lt, t); scale.set(lerp(30, 48.5, eob(seg(lt, 0, 0.5))));
|
|
129
|
+
if (inMay.look.stamps !== 4) inMay.restyle({ stamps: 4 });
|
|
130
|
+
inMay.set({ mood: 'proud', armL: [20, 10], armR: [20, 10], blink: blink(t) });
|
|
131
|
+
inClerk.set({ mood: lt > 0.35 ? 'shock' : 'neutral', armL: [30, -20], armR: [40, -30], sweat: 1 });
|
|
132
|
+
inDad.set({ mood: 'proud', armR: [60, -60], blink: blink(t, 1) }); inMom.set({ mood: 'happy', armL: [40, -90] });
|
|
133
|
+
shoot(IN.scene, inPeople, V3(-0.4, 1.9, 1.6), V3(0.1, 1.85, 0.9), V3(2.7, 1.9, -2.2), null, k, LOOKS.room);
|
|
134
|
+
blit();
|
|
135
|
+
} });
|
|
136
|
+
cue(st, 'whoosh'); cue(st + 0.35, 'boing', { gain: 0.6 }); }
|
|
137
|
+
|
|
138
|
+
// ── 3 · "to her grandma's house" (grandma waves from her porch) ──
|
|
139
|
+
{ const st = cut(1);
|
|
140
|
+
add({ id: 'S03', at: st, note: "grandma's pink house, grandma waving on the porch", draw(lt, d, t, blit) {
|
|
141
|
+
const k = eio(clamp(lt / d)); mdDad.group.visible = mdMom.group.visible = mdMay.group.visible = mdCousin.group.visible = false; mdGma.group.visible = true;
|
|
142
|
+
mdGma.group.position.copy(gmaFront(0.9, 3.3)); mdGma.set({ mood: 'happy', armR: [150 + Math.sin(t * 9) * 18, 10] });
|
|
143
|
+
gma.door.rotation.y = 0;
|
|
144
|
+
const a = gmaFront(0.8, 3.0); shoot(MD.scene, mdPeople, gmaFront(1.4, 9.5).setY(1.8), gmaFront(1.0, 7.0).setY(1.6), a.clone().setY(2.0), a.clone().setY(1.5), k, LOOKS.field);
|
|
145
|
+
blit();
|
|
146
|
+
} });
|
|
147
|
+
cue(st, 'whoosh', { gain: 0.6 }); }
|
|
148
|
+
|
|
149
|
+
// ── 4 · "With the stamps stuck right on her coat" (close-up, stamps pop on) ──
|
|
150
|
+
{ const st = cut(2), w0 = Wd('stamps', 2);
|
|
151
|
+
add({ id: 'S04', at: st, note: 'close-up of May: stamps pop onto her coat on "stamps"', draw(lt, d, t, blit) {
|
|
152
|
+
const k = eio(clamp(lt / d)); counterScene(lt, t, { dad: false, mom: false });
|
|
153
|
+
const n = Math.min(6, 4 + Math.floor(clamp((t - w0) / 0.18) * 2 + (t > w0 ? 1 : 0))); if (inMay.look.stamps !== n) inMay.restyle({ stamps: n });
|
|
154
|
+
inMay.set({ mood: t > w0 + 0.4 ? 'smug' : 'happy', armL: [30, -20], armR: [20, 10], look: [0.4, 0], blink: blink(t) });
|
|
155
|
+
inClerk.set({ mood: 'shock', armL: [30, -20], armR: [40, -30] });
|
|
156
|
+
shoot(IN.scene, inPeople, V3(1.75, 2.1, -0.15), V3(1.95, 2.05, -0.55), V3(2.7, 2.0, -1.95), null, k, LOOKS.room, 1.5);
|
|
157
|
+
blit();
|
|
158
|
+
} });
|
|
159
|
+
cue(st, 'whoosh'); [0, 0.18, 0.36].forEach((o) => cue(w0 + o, 'pop', { gain: 0.8 })); }
|
|
160
|
+
|
|
161
|
+
// ── 5 · "See, the post office had just started delivering packages," ──
|
|
162
|
+
{ const st = cut(3), w0 = Wd('packages', 3);
|
|
163
|
+
add({ id: 'S05', at: st, note: 'post office front: the mailman carries parcels out, parcels pile up on "packages"', draw(lt, d, t, blit) {
|
|
164
|
+
const k = eio(clamp(lt / d)); const z = PO.z;
|
|
165
|
+
stDad.group.visible = stMom.group.visible = stMay.group.visible = false; stMan.group.visible = true;
|
|
166
|
+
stMan.at(-5.2, 0.18, z - 0.6 - k * 2.4); stMan.set({ legs: 'walk', phase: t * 7, mood: 'happy', armL: [30, -100], armR: [30, -100], holdR: PROPS.parcels, v: 'parcels' });
|
|
167
|
+
piles.forEach((p, i) => { const a = clamp((t - w0 + 0.3 - i * 0.08) / 0.25); p.visible = a > 0; p.scale.setScalar(eob(a) || 0.001); });
|
|
168
|
+
shoot(ST.scene, streetPeople(), V3(-1.5, 2.6, z - 6.5), V3(-1.8, 1.8, z - 6.0), V3(-5.6, 3.4, z - 0.5), V3(-5.4, 1.2, z - 2.2), k, LOOKS.street);
|
|
169
|
+
blit();
|
|
170
|
+
} });
|
|
171
|
+
cue(st, 'whoosh'); cue(w0 - 0.25, 'plop'); cue(w0 - 0.1, 'plop'); cue(w0 + 0.05, 'plop'); cue(w0 + 0.2, 'plop'); }
|
|
172
|
+
|
|
173
|
+
// ── 6 · "and May's parents wanted her to visit grandma," (the family at home) ──
|
|
174
|
+
const homeFront = (lt, t) => { mdDad.at(-0.8, 0, -1.0); mdMom.at(0.8, 0, -1.1); mdMay.at(0.05, 0, -0.7); mdGma.group.visible = mdCousin.group.visible = false; mdDad.group.visible = mdMom.group.visible = mdMay.group.visible = true; };
|
|
175
|
+
{ const st = cut(4);
|
|
176
|
+
add({ id: 'S06', at: st, note: 'home: the family in the front yard, May hopeful, mom talking', draw(lt, d, t, blit) {
|
|
177
|
+
const k = eio(clamp(lt / d)); homeFront(lt, t);
|
|
178
|
+
mdDad.set({ mood: 'happy', armL: [20, 10], blink: blink(t) }); mdMom.set({ mood: 'happy', talk: talk(t), armR: [70, -60], look: [-0.6, 0.3] });
|
|
179
|
+
mdMay.set({ mood: 'happy', armL: [140, 20], armR: [140, 20], legs: Math.sin(t * 8) > 0.3 ? 'jump' : 'stand', look: [0, -0.4] });
|
|
180
|
+
shoot(MD.scene, mdPeople, V3(-1.0, 1.7, 4.6), V3(-0.3, 1.5, 3.6), V3(0, 1.3, -1), null, k, { ...LOOKS.field, fov: 52 });
|
|
181
|
+
blit();
|
|
182
|
+
} });
|
|
183
|
+
cue(st, 'whoosh'); cue(st + 0.3, 'boing', { gain: 0.5 }); }
|
|
184
|
+
|
|
185
|
+
// ── 7 · "seventy-three miles away." (the signpost, then fly toward the hills) ──
|
|
186
|
+
{ const st = cut(5);
|
|
187
|
+
add({ id: 'S07', at: st, note: 'signpost LEWISTON 73 MI, camera rises past it toward the far hills', draw(lt, d, t, blit) {
|
|
188
|
+
const k = eio(clamp(lt / d)); mdDad.group.visible = mdMom.group.visible = mdMay.group.visible = mdGma.group.visible = mdCousin.group.visible = false;
|
|
189
|
+
shoot(MD.scene, mdPeople, V3(3.4, 2.3, 5.2), V3(4.2, 4.6, 3.0), V3(6.2, 2.4, 2.4), V3(40, 3, -60), eio(k), LOOKS.field, 4);
|
|
190
|
+
blit();
|
|
191
|
+
} });
|
|
192
|
+
cue(st, 'whoosh'); cue(st + 0.1, 'slide', { dur: 1.4, gain: 0.5 }); }
|
|
193
|
+
|
|
194
|
+
// ── 8 · "But a train ticket wasn't cheap." (dad sweats over the ticket price) ──
|
|
195
|
+
{ const st = cut(6);
|
|
196
|
+
add({ id: 'S08', at: st, note: 'close-up dad: ticket "$$$", sweating; mom peeks with an empty purse', draw(lt, d, t, blit) {
|
|
197
|
+
const k = eio(clamp(lt / d)); homeFront(lt, t); mdMay.group.visible = false; mdDad.at(-0.45, 0, -1.0); mdMom.at(0.6, 0, -1.4);
|
|
198
|
+
mdDad.set({ mood: 'worried', armR: [30, -90], holdR: PROPS.ticket, sweat: 1, look: [0.5, 0.6], v: 'tk' }); mdMom.set({ mood: 'worried', armL: [30, -90], holdL: PROPS.purse, look: [-0.8, 0.4], v: 'pu' });
|
|
199
|
+
shoot(MD.scene, mdPeople, V3(-0.2, 1.75, 2.6), V3(-0.1, 1.7, 1.8), V3(-0.05, 1.45, -1.1), null, k, LOOKS.field);
|
|
200
|
+
blit();
|
|
201
|
+
} });
|
|
202
|
+
cue(st, 'whoosh'); cue(st + 0.4, 'zip', { gain: 0.5 }); }
|
|
203
|
+
|
|
204
|
+
// ── 9 · "So her dad walked her into the post office" ──
|
|
205
|
+
{ const st = cut(7);
|
|
206
|
+
add({ id: 'S09', at: st, note: 'dad and May walk along the boardwalk to the post office, camera tracks', draw(lt, d, t, blit) {
|
|
207
|
+
const k = clamp(lt / d); const z = PO.z;
|
|
208
|
+
stMan.group.visible = false; stMom.group.visible = false; stDad.group.visible = stMay.group.visible = true; piles.forEach((p) => (p.visible = true, p.scale.setScalar(1)));
|
|
209
|
+
const zz = z - 7 + k * 4.2; stDad.at(-4.9, 0.18, zz); stMay.at(-4.3, 0.18, zz + 0.05);
|
|
210
|
+
stDad.set({ legs: 'walk', phase: t * 7, mood: 'proud', armR: [30, 0] }); stMay.set({ legs: 'walk', phase: t * 9 + 1, mood: 'happy', armL: [50, 0] });
|
|
211
|
+
shoot(ST.scene, streetPeople(), V3(-2.4, 1.6, zz - 3.8), V3(-2.6, 1.55, zz - 3.0), V3(-4.6, 1.25, zz), null, eio(k), LOOKS.street);
|
|
212
|
+
blit();
|
|
213
|
+
} });
|
|
214
|
+
cue(st, 'whoosh'); cue(Wd('post', 7), 'ding', { gain: 0.6 }); }
|
|
215
|
+
|
|
216
|
+
// ── 10 · "and asked how much it costs to mail a kid." ──
|
|
217
|
+
{ const st = cut(8), wk = Wd('kid', 8);
|
|
218
|
+
add({ id: 'S10', at: st, note: 'dad asks at the counter; on "kid" the clerk freezes and we punch in', draw(lt, d, t, blit) {
|
|
219
|
+
counterScene(lt, t, { mom: false }); inMay.at(1.05, 0, -1.6); scale.set(0);
|
|
220
|
+
inDad.set({ mood: 'happy', talk: talk(t, t < wk + 0.25), armL: [60, -70], blink: blink(t) }); inMay.set({ mood: 'happy', look: [0.6, -0.5], blink: blink(t, 1) });
|
|
221
|
+
inClerk.set({ mood: t > wk ? 'shock' : 'neutral', armL: [20, 10], armR: [20, 10], look: [-0.6, 0] });
|
|
222
|
+
const punch = eo(clamp((t - wk) / 0.25));
|
|
223
|
+
shoot(IN.scene, inPeople, mix(V3(-0.6, 1.7, 1.6), V3(-0.3, 1.7, 1.2), eio(clamp(lt / d))), mix(V3(-0.3, 1.7, 1.2), V3(2.3, 1.65, -0.9), punch), V3(2.3, 1.7, -2.3), V3(3.55, 1.5, -2.5), punch, LOOKS.room);
|
|
224
|
+
blit();
|
|
225
|
+
} });
|
|
226
|
+
cue(st, 'whoosh'); cue(wk, 'boing'); }
|
|
227
|
+
|
|
228
|
+
// ── 11 · "The clerk checked the rules," ──
|
|
229
|
+
{ const st = cut(9);
|
|
230
|
+
add({ id: 'S11', at: st, note: 'clerk flips through the big RULES book, sweating', draw(lt, d, t, blit) {
|
|
231
|
+
const k = eio(clamp(lt / d)); counterScene(lt, t, { dad: false, mom: false, may: false });
|
|
232
|
+
inClerk.set({ mood: 'worried', armL: [60, -40], armR: [100, -30], holdR: PROPS.book('RULES', 1), look: [0, 0.8], v: 'open' + (Math.floor(t * 4) % 2), sweat: 1, lean: Math.sin(t * 4) * 2 });
|
|
233
|
+
shoot(IN.scene, inPeople, V3(1.9, 1.75, -0.4), V3(2.2, 1.7, -0.9), V3(3.5, 1.4, -2.5), null, k, LOOKS.room);
|
|
234
|
+
blit();
|
|
235
|
+
} });
|
|
236
|
+
cue(st, 'whoosh'); cue(st + 0.2, 'slide', { dur: 0.4, gain: 0.5 }); cue(st + 0.8, 'slide', { dur: 0.4, gain: 0.5 }); }
|
|
237
|
+
|
|
238
|
+
// ── 12 · "and nothing said he couldn't." ──
|
|
239
|
+
{ const st = cut(10);
|
|
240
|
+
add({ id: 'S12', at: st, note: 'clerk slams the book shut and shrugs; dad grins', draw(lt, d, t, blit) {
|
|
241
|
+
const k = eio(clamp(lt / d)); counterScene(lt, t, { mom: false, may: false });
|
|
242
|
+
const shrug = eob(seg(lt, 0.25, 0.6));
|
|
243
|
+
inClerk.set({ mood: lt > 0.4 ? 'happy' : 'neutral', armL: [lerp(40, 75, shrug), lerp(-80, -60, shrug)], armR: [lerp(40, 75, shrug), lerp(-80, -60, shrug)], holdR: lt < 0.3 ? PROPS.book('RULES', 0) : null, armL0: 0, v: 'shut', bob: -shrug * 10 });
|
|
244
|
+
inDad.set({ mood: 'proud', armR: [40, -40] });
|
|
245
|
+
shoot(IN.scene, inPeople, V3(0.6, 1.8, 0.7), V3(1.0, 1.75, 0.2), V3(3.3, 1.55, -2.5), null, k, LOOKS.room);
|
|
246
|
+
blit();
|
|
247
|
+
} });
|
|
248
|
+
cue(st + 0.2, 'thud'); cue(st + 0.5, 'boing', { gain: 0.5 }); }
|
|
249
|
+
|
|
250
|
+
// ── 13 · "May weighed forty-eight and a half pounds," (needle swings) ──
|
|
251
|
+
const W485 = Wd('pounds', 11);
|
|
252
|
+
{ const st = cut(11);
|
|
253
|
+
add({ id: 'S13', at: st, note: 'May climbs on the scale, the needle swings up to 48.5', draw(lt, d, t, blit) {
|
|
254
|
+
const k = eio(clamp(lt / d)); counterScene(lt, t, { dad: false, mom: false });
|
|
255
|
+
const a = clamp((t - st - 0.2) / (W485 - st - 0.2)); scale.set(48.5 * eob(a) + Math.sin(t * 20) * (1 - a) * 2);
|
|
256
|
+
inMay.set({ mood: a < 1 ? 'happy' : 'proud', armL: [30, 10], armR: [30, 10], legs: lt < 0.25 ? 'jump' : 'stand', blink: blink(t) });
|
|
257
|
+
inClerk.set({ mood: 'neutral', armL: [20, 10], armR: [40, -60], look: [-0.6, 0.6] });
|
|
258
|
+
shoot(IN.scene, inPeople, V3(1.3, 1.9, 0.6), V3(1.65, 1.85, 0.0), V3(2.7, 1.75, -2.1), null, k, LOOKS.room);
|
|
259
|
+
blit();
|
|
260
|
+
} });
|
|
261
|
+
cue(st, 'whoosh'); cue(st + 0.2, 'slide', { dur: 0.9, gain: 0.6 }); cue(W485, 'tock'); }
|
|
262
|
+
|
|
263
|
+
// ── 14 · "just under the fifty pound limit." (dial close-up) ──
|
|
264
|
+
{ const st = cut(12), wu = Wd('under', 12);
|
|
265
|
+
add({ id: 'S14', at: st, note: 'dial close-up: needle trembles just under the red 50 LIMIT zone', draw(lt, d, t, blit) {
|
|
266
|
+
const k = eio(clamp(lt / d)); counterScene(lt, t, { dad: false, mom: false });
|
|
267
|
+
scale.set(48.5 + Math.sin(t * 30) * 0.35);
|
|
268
|
+
inMay.set({ mood: 'smug' });
|
|
269
|
+
const dial = V3(2.7, 2.8, -2.28);
|
|
270
|
+
shoot(IN.scene, inPeople, V3(2.55, 2.9, -1.1), V3(2.68, 2.84, -1.55), dial, null, k, { ...LOOKS.room, aperture: 0.002 }, 0.85);
|
|
271
|
+
blit();
|
|
272
|
+
} });
|
|
273
|
+
cue(st, 'whoosh'); cue(wu, 'ding', { gain: 0.8 }); }
|
|
274
|
+
|
|
275
|
+
// ── 15 · "So on went fifty-three cents in stamps," ──
|
|
276
|
+
{ const st = cut(13);
|
|
277
|
+
add({ id: 'S15', at: st, note: 'clerk slaps stamp after stamp on her coat (4 → 10)', draw(lt, d, t, blit) {
|
|
278
|
+
const k = eio(clamp(lt / d)); counterScene(lt, t, { dad: false, mom: false });
|
|
279
|
+
const n = Math.min(10, 4 + Math.floor(lt / 0.32)); if (inMay.look.stamps !== n) inMay.restyle({ stamps: n });
|
|
280
|
+
const hit = (lt % 0.32) / 0.32;
|
|
281
|
+
inClerk.set({ mood: 'happy', armR: [lerp(150, 95, eo(hit)), -20], holdR: PROPS.stamp, armL: [30, -30], v: 'st' });
|
|
282
|
+
inMay.set({ mood: 'laugh', armL: [30, -10], armR: [30, -10], bob: (1 - hit) * 6 });
|
|
283
|
+
shoot(IN.scene, inPeople, V3(0.9, 1.95, 0.7), V3(1.2, 1.95, 0.2), V3(3.0, 1.85, -2.2), null, k, LOOKS.room);
|
|
284
|
+
blit();
|
|
285
|
+
} });
|
|
286
|
+
for (let i = 1; i <= 6; i++) cue(cut(13) + i * 0.32 - 0.02, 'stamp', { gain: 0.8 }); }
|
|
287
|
+
|
|
288
|
+
// ── 16 · "and she rode the train in the mail car," ──
|
|
289
|
+
{ const st = cut(14);
|
|
290
|
+
add({ id: 'S16', at: st, note: 'wide: steam train with the U.S. MAIL car rolls across the meadow', draw(lt, d, t, blit) {
|
|
291
|
+
const k = clamp(lt / d); const x = -10 + lt * 5.5; tr.position.x = x; tr.update(t);
|
|
292
|
+
shoot(TR.scene, [], V3(x + 8, 1.4, -3.5), V3(x + 5.5, 2.6, -4.5), V3(x + 0.5, 2.0, -12), V3(x - 1.5, 2.0, -12), k, { ...LOOKS.field, aperture: 0.0005, fov: 48 }, 11);
|
|
293
|
+
blit();
|
|
294
|
+
} });
|
|
295
|
+
cue(st, 'whoosh'); cue(st + 0.05, 'chug', { dur: L(15) - st, gain: 0.9 }); }
|
|
296
|
+
|
|
297
|
+
// ── 17 · "with her mom's cousin, who happened to be the mail clerk." ──
|
|
298
|
+
{ const st = cut(15), wc = Wd('cousin', 15);
|
|
299
|
+
add({ id: 'S17', at: st, note: 'inside the mail car: May sits on a mail sack, the cousin sorts letters, tips his cap', draw(lt, d, t, blit) {
|
|
300
|
+
const k = eio(clamp(lt / d)); MC.window.material.map.offset.x = (t * 0.25) % 1;
|
|
301
|
+
mcMay.at(-0.55, 0, -3.15); mcCousin.at(0.12, 0, -3.95);
|
|
302
|
+
mcMay.set({ mood: 'happy', legs: 'sit', armL: [40, -30], armR: [40, -30], look: [0.6, 0], blink: blink(t), bob: Math.abs(Math.sin(t * 9)) * 4 });
|
|
303
|
+
const tip = clamp((t - wc) / 0.3) * (1 - clamp((t - wc - 1.4) / 0.3));
|
|
304
|
+
mcCousin.set({ mood: tip > 0.2 ? 'proud' : 'neutral', armL: [lerp(30, 150, eo(tip)), lerp(-60, 10, tip)], armR: [40, -80], holdR: PROPS.letters, look: [-0.6, 0], v: 'l' });
|
|
305
|
+
shoot(MC.scene, [mcMay, mcCousin], V3(-0.3, 1.35, -0.7), V3(-0.2, 1.25, -1.1), V3(-0.2, 1.0, -3.6), null, k, { ...LOOKS.room, fov: 54 });
|
|
306
|
+
blit();
|
|
307
|
+
} });
|
|
308
|
+
cue(st, 'whoosh'); cue(st, 'chug', { dur: L(16) - st, gain: 0.5 }); cue(wc + 0.1, 'pop', { gain: 0.6 }); }
|
|
309
|
+
|
|
310
|
+
// ── 18 · "He walked her right up to grandma's front door." ──
|
|
311
|
+
{ const st = cut(16), wd = Wd('door', 16);
|
|
312
|
+
add({ id: 'S18', at: st, note: "cousin walks May up grandma's path; the door opens on 'door'; grandma beams", draw(lt, d, t, blit) {
|
|
313
|
+
const k = clamp(lt / d); mdDad.group.visible = mdMom.group.visible = false; [mdMay, mdCousin, mdGma].forEach((p) => (p.group.visible = true));
|
|
314
|
+
const walk = eio(clamp(lt / (wd - st)));
|
|
315
|
+
mdCousin.group.position.copy(gmaFront(1.25, lerp(7.5, 3.6, walk))).setY(walk > 0.85 ? 0.25 : 0); mdMay.group.position.copy(gmaFront(0.5, lerp(7.2, 3.3, walk))).setY(walk > 0.85 ? 0.25 : 0);
|
|
316
|
+
mdCousin.set({ legs: walk < 1 ? 'walk' : 'stand', phase: t * 7, mood: 'happy', armL: [40, 0] });
|
|
317
|
+
if (mdMay.look.stamps !== 10) mdMay.restyle({ stamps: 10 });
|
|
318
|
+
mdMay.set({ legs: walk < 1 ? 'walk' : 'stand', phase: t * 9, mood: 'happy', armR: [lerp(40, 150, clamp((t - wd) / 0.3)), 10] });
|
|
319
|
+
const open = eo(clamp((t - wd + 0.15) / 0.35)); gma.door.rotation.y = -open * 1.6;
|
|
320
|
+
mdGma.group.visible = open > 0.15; mdGma.group.position.copy(gmaFront(-0.05, 2.3)); mdGma.set({ mood: open > 0.6 ? 'laugh' : 'shock', armL: [lerp(10, 120, open), 0], armR: [lerp(10, 120, open), 0] });
|
|
321
|
+
const a = gmaFront(0.2, 3.2);
|
|
322
|
+
shoot(MD.scene, mdPeople, gmaFront(0.4, 10.5).setY(1.8), gmaFront(0.3, 8.2).setY(1.6), gmaFront(0.3, 3.2).setY(1.3), null, eio(k), LOOKS.field);
|
|
323
|
+
blit();
|
|
324
|
+
} });
|
|
325
|
+
cue(st, 'whoosh'); cue(wd, 'ding'); cue(wd + 0.4, 'sparkle', { gain: 0.6 }); }
|
|
326
|
+
|
|
327
|
+
// ── 19 · "Soon after, the post office banned mailing people." ──
|
|
328
|
+
{ const st = cut(17), wb = Wd('banned', 17);
|
|
329
|
+
add({ id: 'S19', at: st, note: 'Postmaster General slams his stamp on "banned"; NOTICE: NO PEOPLE pops on the wall', draw(lt, d, t, blit) {
|
|
330
|
+
const k = eio(clamp(lt / d)); const hit = clamp((t - wb + 0.2) / 0.2);
|
|
331
|
+
ofBoss.set({ mood: t > wb ? 'angry' : 'neutral', armR: [lerp(40, 140, eo(seg(lt, 0, wb - st - 0.2))) - hit * 110, -20], holdR: PROPS.rubberStamp, armL: [20, 10], v: 'rs' });
|
|
332
|
+
notice.visible = false;
|
|
333
|
+
shoot(OF.scene, [ofBoss], V3(0.6, 1.7, 0.4), V3(0.5, 1.65, -0.5), V3(0.4, 1.45, -4), null, k, LOOKS.room);
|
|
334
|
+
blit();
|
|
335
|
+
const pop = clamp((t - wb) / 0.22);
|
|
336
|
+
if (pop > 0) { // the NOTICE slaps onto the screen
|
|
337
|
+
ctx.save(); ctx.translate(540, 560); ctx.rotate(lerp(-0.4, -0.06, eo(pop))); const sc = lerp(1.8, 1, eo(pop)); ctx.scale(sc, sc);
|
|
338
|
+
ctx.fillStyle = 'rgba(0,0,0,0.35)'; ctx.fillRect(-250, -290, 520, 600); ctx.fillStyle = '#F4EBD6'; ctx.fillRect(-270, -310, 520, 600); ctx.strokeStyle = '#1F1C33'; ctx.lineWidth = 8; ctx.strokeRect(-250, -290, 480, 560);
|
|
339
|
+
ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillStyle = '#1F1C33'; ctx.font = '900 92px Inter'; ctx.fillText('NOTICE', -10, -200); ctx.fillStyle = '#B5372E'; ctx.fillRect(-170, -135, 320, 10);
|
|
340
|
+
ctx.font = '900 70px Inter'; ctx.fillText('NO PEOPLE', -10, -40); ctx.fillStyle = '#1F1C33'; ctx.font = '800 50px Inter'; ctx.fillText('MAY BE SENT', -10, 50); ctx.fillText('BY MAIL', -10, 115); ctx.font = '800 30px Inter'; ctx.fillText('POSTMASTER GENERAL', -10, 215);
|
|
341
|
+
ctx.restore();
|
|
342
|
+
}
|
|
343
|
+
} });
|
|
344
|
+
cue(st, 'whoosh'); cue(wb, 'stamp', { gain: 1 }); cue(wb + 0.05, 'slam', { gain: 0.6 }); }
|
|
345
|
+
|
|
346
|
+
// ── 20 · "Which is why today, you can still mail baby chicks," ──
|
|
347
|
+
{ const st = cut(18), wc = Wd('chicks', 18);
|
|
348
|
+
add({ id: 'S20', at: st, note: 'a crate of peeping chicks on the counter, the clerk happily stamps it', draw(lt, d, t, blit) {
|
|
349
|
+
const k = eio(clamp(lt / d)); counterScene(lt, t, { dad: false, mom: false, may: false }); chicks.visible = true; chicks.update(t); scale.visible = false;
|
|
350
|
+
chicks.chicks.forEach((c) => c.lookAt(mix(V3(0.9, 2.1, -0.2), V3(1.3, 1.95, -1.0), k)));
|
|
351
|
+
inClerk.at(3.55, 0, -3.3); inClerk.set({ mood: 'happy', armR: [60, -60], armL: [30, -30], holdR: PROPS.stamp, v: 'c' });
|
|
352
|
+
shoot(IN.scene, inPeople, V3(0.9, 2.1, -0.2), V3(1.3, 1.95, -1.0), V3(3.0, 1.6, -3.5), null, k, LOOKS.room);
|
|
353
|
+
blit();
|
|
354
|
+
} });
|
|
355
|
+
cue(st, 'whoosh'); cue(st + 0.2, 'chirp', { dur: 2.6 }); cue(wc, 'stamp', { gain: 0.7 }); }
|
|
356
|
+
|
|
357
|
+
// ── 21 · "but not your little sister." (sister in a parcel box, RETURN TO SENDER) ──
|
|
358
|
+
{ const st = cut(19), wsis = Wd('sister', 19);
|
|
359
|
+
add({ id: 'S21', at: st, note: 'little sister stands in a stamped parcel box, smug; RETURN TO SENDER stamp slams down', draw(lt, d, t, blit) {
|
|
360
|
+
const k = eio(clamp(lt / Math.min(d, 2.2))); counterScene(lt, t, { dad: false, mom: false, may: false }); chicks.visible = false; scale.visible = true;
|
|
361
|
+
inClerk.at(3.55, 0, -2.5); box.visible = true; inSis.group.visible = true; inSis.at(1.2, 0.02, -1.95);
|
|
362
|
+
inSis.set({ mood: t > wsis + 0.3 ? 'sad' : 'smug', armL: [150, 20], armR: [20, 10], blink: blink(t) });
|
|
363
|
+
inClerk.set({ mood: 'angry', armL: [70, -70], armR: [70, -70], look: [-0.8, 0.6] });
|
|
364
|
+
shoot(IN.scene, inPeople, V3(0.0, 1.55, 1.3), V3(0.35, 1.45, 0.7), V3(1.5, 1.05, -2.0), null, k, LOOKS.room);
|
|
365
|
+
blit();
|
|
366
|
+
const sp = clamp((t - wsis - 0.15) / 0.18);
|
|
367
|
+
if (sp > 0) {
|
|
368
|
+
ctx.save(); ctx.translate(540, 640); ctx.rotate(-0.16); const s = lerp(2.6, 1.25, eo(sp)); ctx.scale(s, s); ctx.globalAlpha = Math.min(1, sp * 1.5);
|
|
369
|
+
ctx.strokeStyle = '#C8283A'; ctx.lineWidth = 14; ctx.beginPath(); ctx.roundRect(-330, -95, 660, 190, 22); ctx.stroke();
|
|
370
|
+
ctx.fillStyle = '#C8283A'; ctx.font = '900 92px Inter'; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillText('RETURN TO', 0, -36); ctx.fillText('SENDER', 0, 50);
|
|
371
|
+
ctx.restore();
|
|
372
|
+
}
|
|
373
|
+
} });
|
|
374
|
+
cue(st, 'whoosh'); cue(wsis + 0.15, 'stamp', { gain: 1 }); cue(wsis + 0.17, 'slam', { gain: 0.7 }); }
|
|
375
|
+
|
|
376
|
+
return { shots: S, cues: CUES };
|
|
377
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// Frame-exact capture through headless Chrome. No npm packages (Node 22+). Run from the project folder.
|
|
2
|
+
// node tools/capture.mjs check boot, list shots + captions, report errors
|
|
3
|
+
// node tools/capture.mjs cues write data/cues.json (the sound cues, for tools/mix.py)
|
|
4
|
+
// node tools/capture.mjs sheet review/all.jpg [step=0.5] [cols=9] contact sheet, a frame every `step` s, time-stamped
|
|
5
|
+
// node tools/capture.mjs frames review/full "1.2,8.4" full-size JPEGs of those times
|
|
6
|
+
// node tools/capture.mjs video renders/out.mp4 [start end] [--draft] the film (30 fps) with data/mix.wav if it exists
|
|
7
|
+
// node tools/capture.mjs preview serve the project and print a URL to watch it in a browser
|
|
8
|
+
// CHROME=/path/to/chrome overrides the browser.
|
|
9
|
+
import { spawn, spawnSync } from 'node:child_process';
|
|
10
|
+
import http from 'node:http';
|
|
11
|
+
import fs from 'node:fs';
|
|
12
|
+
import os from 'node:os';
|
|
13
|
+
import path from 'node:path';
|
|
14
|
+
import { fileURLToPath } from 'node:url';
|
|
15
|
+
|
|
16
|
+
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
17
|
+
const FPS = +(process.env.FPS || 30);
|
|
18
|
+
const CHROME = [process.env.CHROME, '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', '/Applications/Chromium.app/Contents/MacOS/Chromium',
|
|
19
|
+
'/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge', '/usr/bin/google-chrome', '/usr/bin/google-chrome-stable', '/usr/bin/chromium',
|
|
20
|
+
'/usr/bin/chromium-browser', '/snap/bin/chromium', 'C:/Program Files/Google/Chrome/Application/chrome.exe',
|
|
21
|
+
'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe'].find((p) => p && fs.existsSync(p));
|
|
22
|
+
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
23
|
+
const args = process.argv.slice(2), flags = new Set(args.filter((a) => a.startsWith('--')));
|
|
24
|
+
const [mode, ...rest] = args.filter((a) => !a.startsWith('--'));
|
|
25
|
+
|
|
26
|
+
const MIME = { '.html': 'text/html', '.js': 'text/javascript', '.mjs': 'text/javascript', '.json': 'application/json', '.otf': 'font/otf',
|
|
27
|
+
'.ttf': 'font/ttf', '.woff2': 'font/woff2', '.wav': 'audio/wav', '.mp3': 'audio/mpeg', '.png': 'image/png', '.jpg': 'image/jpeg' };
|
|
28
|
+
function serve(port = 0) {
|
|
29
|
+
return new Promise((res) => {
|
|
30
|
+
const srv = http.createServer((req, r) => {
|
|
31
|
+
const u = decodeURIComponent(req.url.split('?')[0]), f = path.join(ROOT, u === '/' ? 'index.html' : u);
|
|
32
|
+
if (!f.startsWith(ROOT) || !fs.existsSync(f) || fs.statSync(f).isDirectory()) { r.writeHead(404); r.end(); return; }
|
|
33
|
+
r.writeHead(200, { 'Content-Type': MIME[path.extname(f)] || 'application/octet-stream', 'Cache-Control': 'no-store' });
|
|
34
|
+
fs.createReadStream(f).pipe(r);
|
|
35
|
+
});
|
|
36
|
+
srv.listen(port, '127.0.0.1', () => res(srv));
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
async function openPage(port) {
|
|
41
|
+
if (!CHROME) throw new Error('Chrome not found: install Google Chrome or set CHROME=/path/to/chrome');
|
|
42
|
+
const prof = fs.mkdtempSync(path.join(os.tmpdir(), 'fs-chrome-'));
|
|
43
|
+
const chrome = spawn(CHROME, ['--headless=new', '--remote-debugging-port=0', `--user-data-dir=${prof}`, '--no-first-run', '--no-default-browser-check',
|
|
44
|
+
'--hide-scrollbars', '--window-size=1080,1920', '--ignore-gpu-blocklist', '--enable-unsafe-swiftshader', ...(process.env.SOFTWARE_GL ? ['--use-angle=swiftshader'] : []), ...(process.getuid?.() === 0 ? ['--no-sandbox'] : []), '--disable-background-timer-throttling', '--disable-renderer-backgrounding', 'about:blank'], { stdio: 'ignore' });
|
|
45
|
+
let dbg;
|
|
46
|
+
for (let i = 0; i < 200 && !dbg; i++) { try { dbg = fs.readFileSync(path.join(prof, 'DevToolsActivePort'), 'utf8').split('\n')[0].trim(); } catch { await sleep(100); } }
|
|
47
|
+
if (!dbg) throw new Error('Chrome did not start');
|
|
48
|
+
const r = await fetch(`http://127.0.0.1:${dbg}/json/new?${encodeURIComponent(`http://127.0.0.1:${port}/index.html?capture=1${process.env.QS || ''}`)}`, { method: 'PUT' });
|
|
49
|
+
const target = await r.json();
|
|
50
|
+
const ws = new WebSocket(target.webSocketDebuggerUrl);
|
|
51
|
+
await new Promise((res, rej) => { ws.onopen = res; ws.onerror = rej; });
|
|
52
|
+
let id = 0; const pend = new Map(), logs = [];
|
|
53
|
+
ws.onmessage = (e) => {
|
|
54
|
+
const m = JSON.parse(e.data);
|
|
55
|
+
if (m.id && pend.has(m.id)) { const p = pend.get(m.id); pend.delete(m.id); m.error ? p.rej(new Error(m.error.message)) : p.res(m.result); }
|
|
56
|
+
else if (m.method === 'Runtime.exceptionThrown') logs.push('EXCEPTION ' + (m.params.exceptionDetails.exception?.description || m.params.exceptionDetails.text));
|
|
57
|
+
else if (m.method === 'Runtime.consoleAPICalled' && m.params.type === 'error') logs.push('ERROR ' + m.params.args.map((a) => a.value ?? a.description).join(' '));
|
|
58
|
+
};
|
|
59
|
+
const send = (method, params = {}) => new Promise((res, rej) => { const i = ++id; pend.set(i, { res, rej }); ws.send(JSON.stringify({ id: i, method, params })); });
|
|
60
|
+
const ev = async (expr) => { const x = await send('Runtime.evaluate', { expression: expr, returnByValue: true, awaitPromise: true }); if (x.exceptionDetails) throw new Error(x.exceptionDetails.exception?.description || x.exceptionDetails.text); return x.result.value; };
|
|
61
|
+
await send('Runtime.enable');
|
|
62
|
+
for (let i = 0; ; i++) {
|
|
63
|
+
const st = await ev('window.OP ? (OP.bootError ? "ERR:" + OP.bootError : OP.ready) : false').catch(() => false);
|
|
64
|
+
if (st === true) break;
|
|
65
|
+
if (typeof st === 'string') throw new Error('boot failed: ' + st + '\n' + logs.join('\n'));
|
|
66
|
+
if (i > 1200) throw new Error('boot timeout\n' + logs.join('\n'));
|
|
67
|
+
await sleep(100);
|
|
68
|
+
}
|
|
69
|
+
const close = () => { try { ws.close(); } catch {} chrome.kill('SIGKILL'); setTimeout(() => { try { fs.rmSync(prof, { recursive: true, force: true }); } catch {} }, 300); };
|
|
70
|
+
return { ev, logs, close };
|
|
71
|
+
}
|
|
72
|
+
const jpg = (d) => Buffer.from(d.slice(d.indexOf(',') + 1), 'base64');
|
|
73
|
+
const FRAME = (t, q, label) => `(() => { const d = OP.frame(${t}, ${q}); ${label ? `const cv = document.getElementById('cv'), c = cv.getContext('2d'); c.setTransform(1,0,0,1,0,0); c.fillStyle = '#000'; c.fillRect(0, 0, 250, 86); c.fillStyle = '#fff'; c.font = '700 60px sans-serif'; c.textAlign = 'left'; c.textBaseline = 'alphabetic'; c.fillText('${(+t).toFixed(2)}', 14, 64); return cv.toDataURL('image/jpeg', ${q});` : 'return d;'} })()`;
|
|
74
|
+
|
|
75
|
+
const srv = await serve(mode === 'preview' ? 8765 : 0), port = srv.address().port;
|
|
76
|
+
if (mode === 'preview') { console.log(`open http://127.0.0.1:${port}/ (Ctrl+C to stop)`); }
|
|
77
|
+
else {
|
|
78
|
+
const P = await openPage(port);
|
|
79
|
+
try {
|
|
80
|
+
const dur = await P.ev('OP.duration()');
|
|
81
|
+
if (mode === 'check') {
|
|
82
|
+
console.log(`duration ${dur.toFixed(2)} s`);
|
|
83
|
+
for (const s of await P.ev('OP.shots()')) console.log(`${s.id.padEnd(5)} ${s.at.toFixed(2).padStart(6)} → ${s.end.toFixed(2).padStart(6)} (${(s.end - s.at).toFixed(2)} s) ${s.note}`);
|
|
84
|
+
console.log('captions:'); for (const c of await P.ev('OP.captions()')) console.log(` ${c.s.toFixed(2).padStart(6)}–${c.e.toFixed(2).padEnd(6)} ${c.text}`);
|
|
85
|
+
let bad = 0; for (let t = 0; t < dur; t += 0.25) { try { await P.ev(`OP.draw(${t})`); } catch (e) { bad++; console.log(`ERROR at ${t.toFixed(2)}: ${e.message.split('\n')[0]}`); } }
|
|
86
|
+
if (P.logs.length) console.log(P.logs.join('\n'));
|
|
87
|
+
console.log(bad || P.logs.length ? 'CHECK FAILED' : 'CHECK OK');
|
|
88
|
+
} else if (mode === 'cues') {
|
|
89
|
+
const cues = await P.ev('OP.cues()');
|
|
90
|
+
fs.mkdirSync(path.join(ROOT, 'data'), { recursive: true });
|
|
91
|
+
fs.writeFileSync(path.join(ROOT, 'data/cues.json'), JSON.stringify({ duration: dur, cues }, null, 1));
|
|
92
|
+
console.log(`data/cues.json: ${cues.length} cues, ${dur.toFixed(2)} s`);
|
|
93
|
+
} else if (mode === 'frames') {
|
|
94
|
+
const dir = path.resolve(ROOT, rest[0] || 'review/frames'); fs.mkdirSync(dir, { recursive: true });
|
|
95
|
+
for (const t of (rest[1] || '0').split(',').map(Number)) { fs.writeFileSync(path.join(dir, `t${t.toFixed(2)}.jpg`), jpg(await P.ev(FRAME(t, 0.92)))); }
|
|
96
|
+
console.log(dir);
|
|
97
|
+
} else if (mode === 'sheet') {
|
|
98
|
+
const out = path.resolve(ROOT, rest[0] || 'review/all.jpg'), step = +(rest[1] || 0.5), cols = +(rest[2] || 9);
|
|
99
|
+
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'fs-sheet-')); let n = 0;
|
|
100
|
+
for (let t = step / 2; t < dur; t += step) fs.writeFileSync(path.join(tmp, `f${String(n++).padStart(4, '0')}.jpg`), jpg(await P.ev(FRAME(t, 0.8, true))));
|
|
101
|
+
const rows = Math.ceil(n / cols); fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
102
|
+
const r = spawnSync('ffmpeg', ['-v', 'error', '-y', '-framerate', '1', '-i', path.join(tmp, 'f%04d.jpg'), '-vf', `scale=216:384,tile=${cols}x${rows}:padding=4:color=black`, '-frames:v', '1', '-q:v', '3', out]);
|
|
103
|
+
fs.rmSync(tmp, { recursive: true, force: true });
|
|
104
|
+
if (r.status) throw new Error('ffmpeg: ' + r.stderr); console.log(`${out} (${n} frames, every ${step} s)`);
|
|
105
|
+
} else if (mode === 'video') {
|
|
106
|
+
const out = path.resolve(ROOT, rest[0] || 'renders/video.mp4'); fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
107
|
+
const mix = path.join(ROOT, 'data/mix.wav'), hasMix = fs.existsSync(mix), a0 = rest[1] ? +rest[1] : 0, a1 = rest[2] ? Math.min(+rest[2], dur) : dur, n = Math.round((a1 - a0) * FPS);
|
|
108
|
+
const ff = spawn('ffmpeg', ['-v', 'error', '-y', '-f', 'image2pipe', '-framerate', String(FPS), '-i', '-',
|
|
109
|
+
...(hasMix ? ['-ss', String(a0), '-t', String(a1 - a0), '-i', mix] : ['-f', 'lavfi', '-i', 'anullsrc=r=48000:cl=stereo']), '-map', '0:v', '-map', '1:a',
|
|
110
|
+
'-c:v', 'libx264', '-preset', flags.has('--draft') ? 'ultrafast' : 'veryfast', '-crf', flags.has('--draft') ? '28' : '18', '-pix_fmt', 'yuv420p',
|
|
111
|
+
'-c:a', 'aac', '-b:a', '192k', '-shortest', '-movflags', '+faststart', out], { stdio: ['pipe', 'inherit', 'inherit'] });
|
|
112
|
+
const t0 = Date.now();
|
|
113
|
+
for (let i = 0; i < n; i++) {
|
|
114
|
+
const b = jpg(await P.ev(FRAME(a0 + i / FPS, flags.has('--draft') ? 0.8 : 0.93)));
|
|
115
|
+
if (!ff.stdin.write(b)) await new Promise((r) => ff.stdin.once('drain', r));
|
|
116
|
+
if (i % 150 === 0) process.stdout.write(`\r${i}/${n} frames`);
|
|
117
|
+
}
|
|
118
|
+
ff.stdin.end(); await new Promise((r) => ff.on('close', r));
|
|
119
|
+
console.log(`\r${out} (${n} frames, ${hasMix ? 'with data/mix.wav' : 'SILENT: no data/mix.wav'}, ${((Date.now() - t0) / 1000).toFixed(0)} s)`);
|
|
120
|
+
} else console.log('modes: check · cues · sheet · frames · video · preview');
|
|
121
|
+
} finally { P.close(); srv.close(); }
|
|
122
|
+
}
|