@slatesvideo/shared 0.7.7 → 0.7.9
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/README.md +3 -6
- package/dist/analytics/events.d.ts +1 -1
- package/dist/analytics/events.js +7 -0
- package/dist/auth.d.ts +2 -0
- package/dist/auth.js +5 -0
- package/dist/clients/cloud.d.ts +2 -0
- package/dist/clients/cloud.js +5 -1
- package/dist/clients/desktop.js +6 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +7 -3
- package/dist/manual/content.d.ts +1 -1
- package/dist/manual/content.js +1 -1
- package/dist/operations/index.d.ts +724 -173
- package/dist/operations/index.js +875 -65
- package/dist/operations/surface.d.ts +2 -2
- package/dist/operations/surface.js +26 -6
- package/dist/prompts/agent-doctrine.d.ts +12 -2
- package/dist/prompts/agent-doctrine.js +56 -28
- package/dist/prompts/banned-tokens.js +23 -13
- package/dist/prompts/brain.d.ts +29 -0
- package/dist/prompts/brain.js +72 -0
- package/dist/prompts/craft-cards.d.ts +15 -4
- package/dist/prompts/craft-cards.js +71 -9
- package/dist/prompts/generation-policy.d.ts +1 -1
- package/dist/prompts/guide-discovery.d.ts +6 -6
- package/dist/prompts/guide-retrieval.d.ts +7 -1
- package/dist/prompts/guide-retrieval.js +33 -5
- package/dist/prompts/partials.generated.js +1 -13
- package/dist/prompts/shot-grammar.d.ts +1 -1
- package/dist/prompts/shot-grammar.js +1 -1
- package/dist/skills/brain-check.d.ts +44 -0
- package/dist/skills/brain-check.js +174 -0
- package/dist/skills/content.d.ts +3 -0
- package/dist/skills/content.js +81 -44
- package/dist/skills/hyperframes-content.js +4 -4
- package/dist/skills/my-brain.d.ts +52 -0
- package/dist/skills/my-brain.js +218 -0
- package/dist/skills/served.d.ts +56 -0
- package/dist/skills/served.js +232 -0
- package/package.json +2 -4
- package/skills/hyperframes/NOTICE +19 -3
- package/skills/hyperframes/SLATES-MAPPING.md +1 -1
- package/skills/hyperframes/embedded-captions/CATALOG.md +3 -0
- package/skills/hyperframes/embedded-captions/SKILL.md +6 -6
- package/skills/hyperframes/embedded-captions/assets/fonts/char-widths.json +227 -1
- package/skills/hyperframes/embedded-captions/modes/standard/fonts/build-fonts-css.cjs +19 -2
- package/skills/hyperframes/embedded-captions/modes/standard/fonts/files/archivo-latin-wdth-italic.woff2 +0 -0
- package/skills/hyperframes/embedded-captions/modes/standard/fonts/files/archivo-latin-wdth-normal.woff2 +0 -0
- package/skills/hyperframes/embedded-captions/scripts/make-theme.cjs +438 -3
- package/skills/hyperframes/embedded-captions/scripts/make-theme.test.mjs +1 -0
- package/skills/hyperframes/embedded-captions/themes/README.md +26 -1
- package/skills/hyperframes/embedded-captions/themes/lesson.json +31 -0
- package/skills/slates-start-here.md +78 -0
- package/exports/slates-chatgpt-images/generated/SKILL.md +0 -113
- package/exports/slates-chatgpt-images/generated/slates-chatgpt-images.skill +0 -0
- package/exports/slates-prompt-builder/generated/SKILL.md +0 -71
- package/exports/slates-prompt-builder/generated/reference-character.md +0 -92
- package/exports/slates-prompt-builder/generated/reference-content-policy.md +0 -81
- package/exports/slates-prompt-builder/generated/reference-gpt-image-2-5.md +0 -191
- package/exports/slates-prompt-builder/generated/reference-kling.md +0 -295
- package/exports/slates-prompt-builder/generated/reference-nano-banana.md +0 -240
- package/exports/slates-prompt-builder/generated/reference-omni-flash.md +0 -97
- package/exports/slates-prompt-builder/generated/reference-seedance-2-5.md +0 -392
- package/exports/slates-prompt-builder/generated/reference-seedance.md +0 -441
- package/exports/slates-prompt-builder/generated/slates-prompt-builder-manifest.json +0 -133
- package/exports/slates-prompt-builder/generated/slates-prompt-builder.skill +0 -0
- package/skills/_partials/blender-action-curves.md +0 -24
- package/skills/_partials/cinematic-card.md +0 -8
- package/skills/_partials/decision-log.md +0 -1
- package/skills/_partials/image-defaults.md +0 -9
- package/skills/_partials/iteration-diagnosis.md +0 -5
- package/skills/_partials/living-performance.md +0 -22
- package/skills/_partials/model-routing.md +0 -35
- package/skills/_partials/references-read-literally.md +0 -11
- package/skills/_partials/seedance-25-timestamps.md +0 -34
- package/skills/_partials/sheet-tool-defaults.md +0 -6
- package/skills/_partials/still-gate.md +0 -3
- package/skills/_partials/thresholds.md +0 -19
- package/skills/slates-blocking-to-prompt.md +0 -279
- package/skills/slates-camera-language.md +0 -234
- package/skills/slates-captions.md +0 -81
- package/skills/slates-character-identity.md +0 -117
- package/skills/slates-chatgpt-images.md +0 -113
- package/skills/slates-cinematic-look.md +0 -237
- package/skills/slates-content-policy.md +0 -88
- package/skills/slates-cost-discipline.md +0 -150
- package/skills/slates-cuts.md +0 -46
- package/skills/slates-dialogue-blocking.md +0 -134
- package/skills/slates-direct-response-ad.md +0 -26
- package/skills/slates-edit-and-iterate.md +0 -76
- package/skills/slates-layer-brand-captions.md +0 -87
- package/skills/slates-layer-lower-third.md +0 -85
- package/skills/slates-layer-title.md +0 -82
- package/skills/slates-model-selection.md +0 -129
- package/skills/slates-motion.md +0 -57
- package/skills/slates-one-prompt-film.md +0 -38
- package/skills/slates-previs-blocking.md +0 -186
- package/skills/slates-project-organization.md +0 -42
- package/skills/slates-prompting-elevenlabs.md +0 -128
- package/skills/slates-prompting-flux-3.md +0 -157
- package/skills/slates-prompting-gpt-image-2-5.md +0 -196
- package/skills/slates-prompting-inworld-tts.md +0 -174
- package/skills/slates-prompting-kling-v3.md +0 -303
- package/skills/slates-prompting-lip-sync.md +0 -216
- package/skills/slates-prompting-ltx-2-5.md +0 -245
- package/skills/slates-prompting-minimax-h3.md +0 -383
- package/skills/slates-prompting-motion-transfer.md +0 -202
- package/skills/slates-prompting-nano-banana-2-1.md +0 -250
- package/skills/slates-prompting-omni-flash.md +0 -117
- package/skills/slates-prompting-seed-audio.md +0 -168
- package/skills/slates-prompting-seedance-2-5.md +0 -420
- package/skills/slates-prompting-seedance.md +0 -462
- package/skills/slates-prompting-seedream-5-lite.md +0 -122
- package/skills/slates-prompting-wan-3.md +0 -143
- package/skills/slates-restyle-from-blocking.md +0 -121
- package/skills/slates-script-craft.md +0 -45
- package/skills/slates-shot-variety.md +0 -24
- package/skills/slates-storyboard-from-script.md +0 -32
- package/skills/slates-style-prompting.md +0 -56
- package/skills/slates-transitions.md +0 -40
- package/skills/slates-ugc-influencer-ad.md +0 -32
- package/skills/slates-vision-feedback-loop.md +0 -118
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: slates-model-selection
|
|
3
|
-
description: "Choose image, video, edit and audio models for the brief, including animating photos, making films or directing voices. Load before choosing or defaulting a model or quoting a plan; retrieve model-specific craft after selection."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Model selection for the intended piece
|
|
7
|
-
|
|
8
|
-
Choose from the current catalogue using the brief, existing media and delivery requirements. The agent makes this production choice; the user supplies the vision, explicit preferences and approval. A named model takes priority when it can do the requested job. If it cannot, explain the specific conflict and choose a supported route within the brief.
|
|
9
|
-
|
|
10
|
-
## Decide from constraints and evidence
|
|
11
|
-
|
|
12
|
-
Name the primary must-preserve requirement and any other hard constraints: this face stays this face, the fluid behaves like fluid, text remains legible, the voice is specific, or the take remains unbroken. Budget and delivery format can be binding requirements rather than afterthoughts.
|
|
13
|
-
|
|
14
|
-
Choose a seat whose capability and observed craft fit those requirements. Inspect at the intended delivery crop: atmosphere, material texture and anchor objects for a location; identity, skin, pose and gradients for a character. A thumbnail is insufficient evidence for a large final frame. When the roster changes, repeat relevant comparisons rather than inheriting reputation.
|
|
15
|
-
|
|
16
|
-
The catalogue below is generated from the same model facts used by the tools. Current allowed settings and reference inputs come from the tool schemas and `slates_list_available_models`; current prices come from `slates_estimate_generation_cost`. Retrieve the selected model's craft card, then only the sections needed for the shot. Historical measurements below explain a choice; they are not current price quotes or permanent rankings.
|
|
17
|
-
|
|
18
|
-
## Current catalogue
|
|
19
|
-
|
|
20
|
-
<!-- @inject:model-routing -->
|
|
21
|
-
**Current model routing, generated from the operation routing source:**
|
|
22
|
-
|
|
23
|
-
### image generate
|
|
24
|
-
|
|
25
|
-
Nano Banana 2.1: The all-rounder and the only image seat with a headless path: holds many subjects coherently in one frame, keeps what an edit leaves alone, and is the start-frame for legible in-scene text. It reasons before it draws, so dense compositions and hero frames land without a premium tier.
|
|
26
|
-
GPT Image 2.5 Flare: THE FAST GPT IMAGE SEAT — OpenAI's small model, optimized for SPEED, quality COMPARABLE to GPT Image 2 (not better) at roughly half the latency. Route here when speed matters: drafts, exploration, volume. TEXT / DIAGRAM / PANEL work — character sheets, shot grids, text-bearing panels. When quality outranks speed, escalate to Sunburst. Own content filter, distinct from Gemini's. Killed by a head-to-head at the intended crop going the other way.
|
|
27
|
-
GPT Image 2.5 Sunburst: THE QUALITY GPT IMAGE SEAT — OpenAI's most capable image model, higher quality than GPT Image 2, same price as Flare, deliberately SLOWER. Route here unless speed is the point: finals, hero frames, photoreal people, and multi-reference edits where every reference must survive into one frame — its widest lead. Explore on Flare, finish on Sunburst.
|
|
28
|
-
FLUX 3 Image: The premium less-filtered image seat: photoreal frames, precise layout and in-image text, at its loosest safety setting, which can still reject a prompt. Auto-routes to its edit endpoint when references are present.
|
|
29
|
-
Seedream 5 Lite: Cheapest flat-priced image seat (GPT Image 2.5 at low quality costs less per image). Less filtered, though it can still reject a prompt. Routes to its edit endpoint when references are present.
|
|
30
|
-
|
|
31
|
-
### video generate
|
|
32
|
-
|
|
33
|
-
Seedance 2.0: THE 4K AND VALUE SEAT beside the 2.5 default — the only Seedance with native 4K (Pro-gated; base accounts get PRO_REQUIRED) and cheaper than 2.5 at every resolution they share, with the same physics, effects and scale strengths; shorter takes, fewer references, no timestamps. VIDEO-ONLY. A bare "seedance" still resolves here for older CLIs that expect 4K.
|
|
34
|
-
Seedance 2.5: DEFAULT VIDEO MODEL — the strongest seat for physics, effects, scale and hero shots, and the only Seedance that takes long single takes, many references, audio-only references and integer-second timestamps. No 4K, and dearer than 2.0 at every shared resolution: go to 2.0 for 4K or the same resolution cheaper. LENGTH is the price dial — quote long takes first. VIDEO-ONLY. Timestamp grammar and the edit/extend words that make the provider reclassify and fail a generation are in slates-prompting-seedance-2-5.
|
|
35
|
-
Kling 3.0: THE COST-EFFECTIVE SEAT — strong start-frame adherence (identity, layout, text), acting, dialogue and lip-sync; pick it when the budget matters and the shot is a performance or a start-frame animation. Kling is also the ONLY engine behind the Motion Transfer and Lip Sync tools.
|
|
36
|
-
Kling 4.0: The newest Kling, for single takes longer than Kling 3.0 reaches. Dearer per second and slower than 3.0, and on the same start frame 3.0 Pro won on camera and feel, so Kling 3.0 stays the Kling seat for everything else. Sound is always on at no extra cost. Start frame with an optional last frame, multi-shot sequences, or text alone; no reference images. VIDEO-ONLY.
|
|
37
|
-
Gemini Omni Flash 1.1: Google's video model, version 1.1 since 2026-10-17, with native synced audio in the same pass; 1080p and 4K are upscales of its 720p render. Takes a start frame with an optional last frame, or reference images plus short reference videos that carry a likeness (their audio is ignored), with no audio references. It cuts between shots by default, so ask for a single shot. Route here for cheap takes with sound and reference-driven character consistency; LTX, H3 and H3 Max Turbo cost less per second. VIDEO-ONLY. Hero-shot quality against Seedance is not yet measured.
|
|
38
|
-
MiniMax H3: THE AUTHORED-AUDIO SEAT — reach for H3 when the sound is part of the shot rather than a switch on it: synchronised dialogue, scene sound and an audience-only score directed as three separate layers in ONE pass, across eleven languages. Kling and Seedance treat audio as on/off. Only H3 also carries a DECLARED REFERENCE RELATIONSHIP (kept whole, partly kept, transferred, or a loose echo). VIDEO-ONLY. Its top two resolution tiers are UPSCALES of the native render, not larger generations — judge at native and upscale in post. Reference images past the fifth are a PAID key dimension: pass referenceImages when quoting.
|
|
39
|
-
MiniMax H3 Max: THE SPEED SEAT, dearer than base H3 at 768p and equal at 480p — never the cheap H3 and never the default. A post-train of the H3 weights: MEASURED 2026-08-27 at about 12x faster than base H3 on the same prompt and params, queue to finished file, plus a thin vendor-reported quality edge. It tops out at a 1080p refinement of its 768p render. It takes the same omni-reference set as base H3 and animates start and end frames — but not both in one call, the same as base H3: frames and references go to different endpoints. Never describe this row as taking no image or reference input. Route here when a fast turnaround on text-to-video or a start-frame shot is worth the premium.
|
|
40
|
-
MiniMax H3 Max Turbo: THE BUDGET SEAT of the MiniMax family: a second post-train of the H3 weights, billed at half H3 Max's rate at every tier. Its 1080p is a refinement of the native 768p render, not a native 1080p generation. INPUTS ARE FRAMES, NOT REFERENCES: text-to-video and start/end frames only, with no reference endpoint, so reference-driven consistency goes to H3 Max or base H3. Route here for drafts, volume and cheap coverage, then re-run the keeper on H3 Max or a hero seat.
|
|
41
|
-
Wan 3.0: Alibaba's video model, added 2026-10-17: first on Artificial Analysis text-to-video that day, at about a third of Seedance 2.5's price per second at 1080p. Long single takes, multi-shot sequences with timestamps, sound on or off. Start frame with an optional last frame, or references across images, videos and audio cited as Image N / Video N / Audio N (audio-only allowed); frames and references never mix. Reference video seconds bill on top of the output. Route here for long takes, timed multi-shot scenes and reference-driven shots on a budget; Seedance 2.5 stays the default. VIDEO-ONLY.
|
|
42
|
-
LTX-2.5: THE VOLUME SEAT — the cheapest native 1080p second with sound included (H3 Max Turbo's 1080p is refined from 768p), and the row for MANY takes rather than one hero shot. Native synced audio is included free at every tier, unlike Kling where sound is a paid key dimension. It reaches higher resolutions and longer takes than most seats; use the capability surface for its resolution-dependent duration limits. VIDEO-ONLY. INPUTS ARE FRAMES, NOT REFERENCES: start frame plus an optional end frame, and no reference endpoint at all — for character consistency across shots use H3 or Kling. Route here for batch coverage, long takes, and anything where the credit budget is the binding constraint.
|
|
43
|
-
LTX-2.5 Pro: THE FIDELITY SEAT of the LTX pair — the full diffusion build against the base row's distilled one. 🚨 IT IS NOT A SUPERSET OF THE BASE ROW, which is the opposite of every other Pro seat here: it reaches a SHORTER resolution ladder and makes SHORTER clips, and it costs more at both tiers they share. Reaching for it because the name says Pro costs more AND takes away reach. Everything else matches the base row. Route here only when a specific shot needs the fidelity and fits inside its narrower envelope.
|
|
44
|
-
|
|
45
|
-
### video edit
|
|
46
|
-
|
|
47
|
-
Seedance 2.5 Edit: VIDEO-TO-VIDEO EDIT via slates_edit_video, and the only edit engine that takes a clip longer than the other two reach — that length is the whole reason to route here. Inside their range, compare on fidelity instead: Omni Flash edit won the prompt-only head-to-head, and Kling edit is the one that takes reference images. Edits audio on the same row (re-voice, re-accent, translate with re-fitted lips, replace BGM). Costs about 1.2x a plain 2.5 generation of the same length: an edit bills at twice the reduced video-reference rate.
|
|
48
|
-
Kling O3 Video Edit: VIDEO-TO-VIDEO EDIT, the REF-DRIVEN one: it is the only edit seat that takes element/style reference images to lock subject identity, and its keepAudio preserves the original audio verbatim. Route here when an edit NEEDS reference images or bit-exact audio; for prompt-only footage-synced VFX, omni-flash-edit won the fidelity head-to-head. One instruction beat per pass — multi-beat prompts get under-executed.
|
|
49
|
-
Omni Flash 1.1 Edit: VIDEO-TO-VIDEO EDIT, prompt-only, on Omni Flash 1.1 since 2026-10-17. The 1.0 edit won the head-to-head against Kling edit on real talking footage (lips held, audio near-identical, both action beats landed); 1.1 has not been re-measured against it yet. Footage-synced prop, effect, environment and lighting swaps; 1080p and 4K output are upscales. Takes NO reference images — identity swaps needing refs go to Kling edit. Fidelity is EARNED by prompt discipline; the exact form is in slates-prompting-omni-flash.
|
|
50
|
-
|
|
51
|
-
### audio generate
|
|
52
|
-
|
|
53
|
-
Seed Audio 1.0: DEFAULT audio model — the one-pass SCENE workhorse: dialogue, SFX and ambience together from ONE plain sentence. Route here for continuity beds, room tone, crowd and nature soundscapes, and quick scratch VO. AUDIO-ONLY. Takes one image XOR up to three audio clips as references, never both. Prompt form and the length rule are in slates-prompting-seed-audio.
|
|
54
|
-
ElevenLabs Sound Effects v2: ONE-SHOT SOUND EFFECT with an EXACT duration — route here for a single hit that must land on a frame (door slam, whoosh, impact, UI blip) or for a seamless loop. AUDIO-ONLY. For layered scenes with dialogue or room tone, seed-audio does it in one pass instead.
|
|
55
|
-
Inworld Realtime TTS-2: THE VOICE SEAT — one named voice saying one line, billed per CHARACTER not per second. Route here when WHO is speaking matters. NOT scene audio — that is seed-audio; a single effect is eleven-sfx.
|
|
56
|
-
<!-- @end:model-routing -->
|
|
57
|
-
|
|
58
|
-
## Seedance craft triggers
|
|
59
|
-
|
|
60
|
-
Slates field experience identifies these useful beats:
|
|
61
|
-
|
|
62
|
-
- Real-time to slow-motion contrast.
|
|
63
|
-
- A moving camera while debris, meteors, sparks or particles move around the subject.
|
|
64
|
-
- Massive scale whose size is the point of the shot.
|
|
65
|
-
- A continuous unbroken take.
|
|
66
|
-
|
|
67
|
-
These concrete cues are more useful than an abstract label such as “physics.” Compare them with the user's budget, sound, reference and delivery constraints. They suggest a candidate; they do not override an explicitly chosen model or establish that every other seat fails.
|
|
68
|
-
|
|
69
|
-
## Dated production comparisons
|
|
70
|
-
|
|
71
|
-
| Receipt | What was observed | How to use it |
|
|
72
|
-
|---|---|---|
|
|
73
|
-
| MiniMax turnaround, 2026-08-27 | Same prompt and parameters: a five-second 768p H3 Max clip reached the finished file in 4.8 seconds, against 57 seconds on base H3, about twelve times faster. | Evidence for a turnaround requirement. The then-observed rates were ~4 cr/s on Max against ~3 cr/s on base, a premium rather than a saving. Re-quote current settings; queue conditions and provider revisions can change the result. |
|
|
74
|
-
| Prompt-only footage VFX, 2026-07-09 | Omni Flash Edit preserved lip movement, returned near-identical audio and landed both action beats; Kling missed a beat and drifted the lips. Omni sometimes doubled a final speech beat or jittered at the tail. | Use the short change-only prompt demonstrated in `slates-prompting-omni-flash`; trim a defective tail where that solves it. This comparison does not prove exact audio preservation. |
|
|
75
|
-
| Style-heavy relocation, 2026-07-09 | Seedance video-reference regeneration lost to Omni Flash Edit on the tested photoreal insert at 720p, while costing about three times as much in that comparison. | Transfer intensity and reconstruction are different jobs from surgical edits. Choose for the required change and current endpoint, not the historical label “premium.” The video-reference lane regenerates, bills input plus output seconds (at face-lane rates when people are in frame) and takes long descriptive prompts without Omni's hard-fail on timing phrasing; 2.5's lane reached 1080p on 2026-08-24. Route there for transfer intensity or a higher resolution ceiling, never as the cheap default. |
|
|
76
|
-
| Photoreal skin, 2026-08-24 | One comparison favoured GPT Image 2 at its then-high tier. | This is evidence about that old model, crop and comparison. It does not establish the quality tier either GPT Image 2.5 variant needs. Raise quality to address an observed shortfall. |
|
|
77
|
-
|
|
78
|
-
## Existing footage and edit fidelity
|
|
79
|
-
|
|
80
|
-
Read the current video-edit catalogue before choosing an engine. Reference-driven identity changes, exact original audio, clip length and output size are distinct constraints; an engine that handles one may not handle the others. Use `slates_edit_video` for an edit endpoint, and the selected guide for its request syntax.
|
|
81
|
-
|
|
82
|
-
When a clip is mostly right, compare an edit with a new generation before gambling away the useful parts. Every video edit engine can re-synthesise the whole clip: “change only this” describes the intention, not a pixel-level guarantee. For a critical deliverable, consider segment-splicing: edit the affected seconds, retain the original outside the change, and preserve the original audio underneath when needed. Phone footage must be rotation-normalised because players can honour a rotation flag that a model ignores.
|
|
83
|
-
|
|
84
|
-
The July comparison found Kling's original audio track retained verbatim with `keepAudio`, while regenerated lips could drift against it. Near-identical Omni audio was an observation, not a guarantee. For exact legal copy, narration or music, retain the original track and inspect the assembled playback.
|
|
85
|
-
|
|
86
|
-
Omni Flash Edit needs a short change instruction plus “Keep everything else the same”; long identity-lock preambles worsened fidelity in that receipt. Kling multi-beat edits can drop an instruction, so a focused pass can be useful. Video edits can form a lineage of passes when that serves the work; this is distinct from the image master-edit rule in `slates-edit-and-iterate`. Every additional pass still needs the existing generation consent.
|
|
87
|
-
|
|
88
|
-
## Motion transfer and lip sync
|
|
89
|
-
|
|
90
|
-
`slates_generate_motion_transfer` and `slates_generate_lip_sync` expose dedicated Kling endpoints. The former retargets a driving clip onto a character image; the latter re-voices a clip or animates a portrait. Consult their schemas and guides for the current input and output limits, tiers and cost.
|
|
91
|
-
|
|
92
|
-
A Seedance alternative is a normal `slates_generate_video` call with a video reference and explicit motion or dialogue direction, for example “the character from image 1 performs the exact motion from video 1.” This preserves an editable prompt and conditions the generation in one pass. Field experience favours it for fast choreography, contact, cloth and hair where post-hoc retargeting loses fidelity; compare for the specific performance rather than promising a universal win.
|
|
93
|
-
|
|
94
|
-
Video-reference calls bill from both input and output duration. Pass the actual reference durations when quoting; do not assume the output length is the whole charge. Face flags and any consented real-person option follow the selected model's requirements and returned gate. A face rejection is not permission for a more expensive retry.
|
|
95
|
-
|
|
96
|
-
## Image and style production
|
|
97
|
-
|
|
98
|
-
Image, video and audio are separate output lanes. A hero reference still is an image request, even when its final destination is video. Use the current image default for ordinary work and choose another seat when speed, supported shape, reference fidelity or an observed shortfall supplies a reason.
|
|
99
|
-
|
|
100
|
-
<!-- @inject:image-defaults -->
|
|
101
|
-
**Image default:** gpt-image-2-5-sunburst, quality `high`, 3k. User overrides take priority. Without a project, generation uses the headless Nano Banana 2.1 seat. When to reroll a frame on Nano Banana 2.1 instead: `slates-cinematic-look` § Model notes.
|
|
102
|
-
|
|
103
|
-
| Model | Default resolution |
|
|
104
|
-
|---|---|
|
|
105
|
-
| nano-banana-2-1 | 2k |
|
|
106
|
-
| gpt-image-2-5-flare | 2k |
|
|
107
|
-
| gpt-image-2-5-sunburst | 3k |
|
|
108
|
-
| flux-3 | 1k |
|
|
109
|
-
| seedream-5-lite | 2k |
|
|
110
|
-
<!-- @end:image-defaults -->
|
|
111
|
-
|
|
112
|
-
A styled start frame is useful when composition, exact in-scene text or an approved look must hold. It is optional for a video brief; direct text-to-video, imported footage and reference-video direction are other valid entries. `slates-style-prompting` supplies model-specific style craft after the route is chosen.
|
|
113
|
-
|
|
114
|
-
## Sound as a production choice
|
|
115
|
-
|
|
116
|
-
Determine whether sound must generate with the picture, or become a separate editable asset. Native video sound can lock to visible action; a separate voice, effect or ambience bed can be moved, trimmed and reused on the timeline. The generated catalogue owns which models support each job.
|
|
117
|
-
|
|
118
|
-
- “It needs to sound like a place” calls for a scene, not automatically several separately billed effects. Seed Audio can render dialogue, effects and room tone together from a plain sentence.
|
|
119
|
-
- “Read this line” needs a voice decision: Inworld TTS-2 for a specified voice or clean narration; Seed Audio when the line belongs inside a scene. Measure and listen to the take before lip sync.
|
|
120
|
-
- “That needs a thump right there” calls for a physical cause, the event's length and an exact placement in the cut. A dedicated effect can serve that job.
|
|
121
|
-
- “Give it a track” requires an imported song: there is no standalone music-generation model in Slates. Video models' scene scores are a different capability.
|
|
122
|
-
|
|
123
|
-
Seed Audio has no model duration parameter: Slates writes the requested length into the prompt and bills the requested duration. Never add a conflicting second duration to the sentence. Kling video labels such as `SFX:` and `Ambient noise:` do not transfer to Seed Audio; describe the sound directly. For fade handles, request extra bed length only when useful and include it in the quote.
|
|
124
|
-
|
|
125
|
-
Use `slates-prompting-seed-audio`, `slates-prompting-inworld-tts` and `slates-prompting-elevenlabs` for their distinct sound and voice grammar. Return to the selected video guide for sound generated with video.
|
|
126
|
-
|
|
127
|
-
## Spend and delivery
|
|
128
|
-
|
|
129
|
-
Route by the requirements, then compare quotes for settings that satisfy them. A cheaper unusable render costs more after correction, but a binding budget is itself part of the brief. Do not launch paid head-to-head comparisons merely because a table could be fresher. Follow `slates-cost-discipline` and the current generation authorization for the exact requested set.
|
package/skills/slates-motion.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: slates-motion
|
|
3
|
-
description: "Put HTML motion layers on a cut (lower thirds, end cards, animated captions, titles, plates) from the motion block library or your own composition, checked first."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Motion layers on a cut
|
|
7
|
-
|
|
8
|
-
An HTML clip is a composition, an HTML document with a GSAP timeline registered on `window.__timelines`, drawn on an overlay track in preview and export. Slates places, checks and draws it, and the motion engine's own guides teach how to write one (the last section names them). Layers are free: nothing here spends credits.
|
|
9
|
-
|
|
10
|
-
## Show what the words cannot
|
|
11
|
-
|
|
12
|
-
The viewer already hears the voiceover. A layer earns its place by showing something they could not hear: the mechanism working, the product doing the thing, a number made visible, a before and after. The spoken line set in big type is punctuation, not storytelling. Keep it to a handful in a piece and build it last, after the layers that carry the story.
|
|
13
|
-
|
|
14
|
-
A layer that fills the frame during a run of quick cuts also hides them, which is what lets a single-camera talking head take many edits.
|
|
15
|
-
|
|
16
|
-
## Start from the registry
|
|
17
|
-
|
|
18
|
-
Captions, end cards and lower thirds come from the registry. `slates_list_motion_blocks` searches it ("lower third", "end card", "kinetic caption"); the list is the registry at the version Slates runs, so every item in it draws. `slates_add_html_clip` with `block` and its `variables` places one. Variables are text, numbers or true/false, and `slates_update_html_clip` changes them later (`null` clears them).
|
|
19
|
-
|
|
20
|
-
Write your own composition only when no block fits. Passing `html` with `block` replaces the block's document and keeps its files, which is how to restyle a block without rebuilding its assets.
|
|
21
|
-
|
|
22
|
-
Read `slates_get_timeline` first for the frame rate and where clips sit: `startFrame` and `endFrame` are timeline frames, or give `durationSec`; without either, the clip runs as long as the composition or block declares.
|
|
23
|
-
|
|
24
|
-
## Foreground and plate on separate tracks
|
|
25
|
-
|
|
26
|
-
A transparent foreground (a lower third, a caption layer, a callout) and an opaque background plate never share a composition or a track. Apart, each can be retimed, swapped or hidden on its own, and the plate can never cover the captions. Give each its own overlay track (`slates_add_timeline_track` with type overlay, then `trackId`), the plate below the foreground. A composition's page is transparent unless its own CSS paints a background, so a foreground composition paints none.
|
|
27
|
-
|
|
28
|
-
## Check before a layer lands
|
|
29
|
-
|
|
30
|
-
`slates_check_composition` runs Slates' composition check, plus what Slates' sandbox refuses, and writes nothing: run it while drafting. `slates_add_html_clip` and `slates_update_html_clip` run it again and return the findings. Fix every error with `slates_update_html_clip` before moving on, and read every warning. The sandbox loads GSAP from jsDelivr and fonts from Google Fonts and refuses any other remote URL, so a picture goes in a block's own files or inline.
|
|
31
|
-
|
|
32
|
-
When the same finding survives two fixes, revert and redesign the layer rather than piling on a third.
|
|
33
|
-
|
|
34
|
-
## What holds in every layer
|
|
35
|
-
|
|
36
|
-
- **In and out.** The first and last frames are fully transparent and every element animates in and out, so nothing pops on a cut. Ease into the landed state and accelerate away from it, in the same family both ways: a fade and scale in leaves with a fade and scale.
|
|
37
|
-
- **Nothing flashes on frame zero.** Hide elements with a synchronous set when the script loads, not with a step at zero inside the timeline, and register the timeline only once it is built.
|
|
38
|
-
- **Text fits.** Measure each text box against the canvas edge and against every other element, at every frame. Fit variable text after the fonts load, since the fallback font measures differently. Let lines wrap by width, never with `<br>`. Heavy gradient text needs a little right padding, or its last letter clips.
|
|
39
|
-
- **Short.** A callout runs a few seconds and a hero layer under about fifteen. A long beat splits into two or three layers styled alike; a spoken list becomes one short card per item, every card identical but for its content.
|
|
40
|
-
- **No glass.** `backdrop-filter` and faux blur draw nothing over a transparent layer. Build depth from gradients, shadows and transforms, and try any uncertain CSS in a ten-second test layer before a real one.
|
|
41
|
-
- **Transforms.** A GSAP scale or move replaces a CSS `translate` used for centering, so the element jumps; centre animated elements through GSAP's percentage offsets instead.
|
|
42
|
-
- **Loops end.** A repeating animation stops before the composition does.
|
|
43
|
-
|
|
44
|
-
Captions on speech come from `slates_add_captions` (`slates-captions`); its `component` draws them with a caption component as one HTML clip, the only captions that draw emphasis tiers.
|
|
45
|
-
|
|
46
|
-
## The motion engine's guides
|
|
47
|
-
|
|
48
|
-
Retrieve each with `slates_get_prompting_guide` and its name below as the topic. They were written for the motion engine's own CLI and Studio: topic `motion/SLATES-MAPPING.md` says what each of their commands and Studio surfaces is in Slates, and the CLI is never run.
|
|
49
|
-
|
|
50
|
-
- `motion-core`: the composition contract, its timing attributes, variables and render rules.
|
|
51
|
-
- `motion-animation`: motion rules, scene blueprints and transitions.
|
|
52
|
-
- `motion-registry`: blocks and components, and wiring them in.
|
|
53
|
-
- `motion-graphics`: kinetic type, stat count-ups, logo stings, lower thirds and callouts.
|
|
54
|
-
- `talking-head-recut`: overlay cards timed to a transcript on interview footage.
|
|
55
|
-
- `embedded-captions`: caption looks from its style catalog; its captions set behind the subject need matting, which Slates lacks (the mapping lists it).
|
|
56
|
-
- `motion-creative`: palettes, typography and composition patterns.
|
|
57
|
-
- `product-launch-video` and `faceless-explainer`: whole pieces built from layers.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: slates-one-prompt-film
|
|
3
|
-
description: "Turn a video brief into a finished, editable Slates production and verified export. Use for a film, short, trailer, music video or other complete video, from brief to verified export, entering through writing, imported footage or an existing edit. For an ad's argument and structure, combine with slates-direct-response-ad."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Idea to finished video
|
|
7
|
-
|
|
8
|
-
Carry the requested piece through to an exported file. Use existing work whenever it serves the brief. The creator can enter at any point: writing, importing footage, comparing takes or changing an edit. No mandatory stage sequence, shot count or number of approval checkpoints follows from this guide.
|
|
9
|
-
|
|
10
|
-
## Make the intended piece visible
|
|
11
|
-
|
|
12
|
-
Use the current project and document unless another destination is requested. Save words through the revision-checked document tools; `slates-script-craft` covers writing and versions. Add production bindings only where needed. A shot needs no image, and a cut can use imported footage with no script.
|
|
13
|
-
|
|
14
|
-
Preserve fixed passages, explicit creative choices and custom prompt bytes. Recurring cast, repeated framing, silence and dependent scenes are valid when they serve the piece. For a recurring cast member or location, create it and bind its identity sheet or plate before the shots (`slates-character-identity`); those are generations, so quote them with the shots.
|
|
15
|
-
|
|
16
|
-
## Inspect the actual requests and estimate
|
|
17
|
-
|
|
18
|
-
Use `slates_get_shot` to inspect the composed prompt, settings and references. Model choices and supported settings come from `slates-model-selection`, the current capability surface and the selected model's guide. Do not carry limits or prices from an old example.
|
|
19
|
-
|
|
20
|
-
Follow `slates-cost-discipline` and the user's generation policy. Quote saved shots with `slates_generate_from_shots` and any other generation (audio, lip sync, motion transfer, AI edits) with `slates_estimate_generation_cost`, then confirm the set. Existing authorization covers its enumerated requests, not extra takes or changed inputs. Editing the script or shots, choosing takes, importing, trimming and building a cut spend nothing; an AI edit of an image or clip (`slates_edit_image`, `slates_edit_video`) is a generation. To judge composition before video spend, price picture previews (`draft` on `slates_generate_from_shots`) and use the approved pictures as first frames. A shot whose exact camera path or cut timing prompting has not held can be blocked first (`slates-previs-blocking`).
|
|
21
|
-
|
|
22
|
-
Keep reusable historical media separate from new requests. Matching words alone do not prove matching voice, references or settings. An explicitly requested extra take is never deduplicated away.
|
|
23
|
-
|
|
24
|
-
## Generate only the authorized material
|
|
25
|
-
|
|
26
|
-
Submit the chosen requests and inspect each returned state. Voiceover, music, sound effects, lip sync and motion transfer are their own generations; place the audio on an audio track of the cut. On an uncertain timeout, read the shot's generation IDs and job status before any retry. Diagnose a failure and follow the existing consent policy for added requests. Never discard other takes merely because a new one was selected.
|
|
27
|
-
|
|
28
|
-
Inspect image composition and reference fidelity. Inspect video performance, motion and sound across playback; frame samples alone cannot establish speech or motion quality. If an edit can resolve dead air or order, use the existing take rather than assuming another generation is needed.
|
|
29
|
-
|
|
30
|
-
## Arrange and deliver
|
|
31
|
-
|
|
32
|
-
Read the available timelines. Name the destination cut explicitly for a variation; independent comparisons use independent cuts. To lay a board's preferred takes onto a cut in board order, build it from the board (`slates_edit_cut`); when a shot's preferred take changes, sync the cut rather than re-adding clips. Preserve trims, track levels and any delivery framing, and inspect the actual timeline. The editing pass (trims, J- and L-cuts, speed) is `slates-cuts`; transitions between clips are `slates-transitions`.
|
|
33
|
-
|
|
34
|
-
Use supported video/XML exports and their stated fidelity limits. For selected named cuts, `slates_export_cuts` records distinct outputs and a manifest; it returns at once, so poll `slates_get_export_batch` until every output is finished, and retry unfinished outputs with the same manifest identity. `slates_export_assets` copies the original clips, stills or audio out. Verify the returned files and playback before reporting success. Describe the completed piece, actual spend where available and output paths. Do not label a render complete merely because its submission succeeded.
|
|
35
|
-
|
|
36
|
-
<!-- @inject:decision-log -->
|
|
37
|
-
Record production choices in the editable shot fields. Explain only consequential judgments the user did not specify and no field already records: for example, why a particular light or performance register supports the brief. Do not repeat the shot list in prose or turn this explanation into an approval gate. Follow the separate generation authorization policy before spending.
|
|
38
|
-
<!-- @end:decision-log -->
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: slates-previs-blocking
|
|
3
|
-
description: "Build and render a Blender blocking pass for precise camera paths, cut timing or spatial continuity, then guide video generation with the clip. Use when those controls are required or prompting has failed to hold them."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Previs blocking — design the shot, then generate it
|
|
7
|
-
|
|
8
|
-
The spine of the whole workflow. Read this first; the other four previs skills are branches off it.
|
|
9
|
-
|
|
10
|
-
## The mechanism (why this works at all)
|
|
11
|
-
|
|
12
|
-
A text prompt asks the model to *invent* camera motion, so it invents differently every roll. You cannot iterate on a variable you do not control, so you re-roll and pay again.
|
|
13
|
-
|
|
14
|
-
A **reference video** removes the invention. You build the shot in Blender as untextured proxies — a neutral grey set with colour-coded figures, free, instant, deterministic — render the camera's path to mp4, and hand the model that clip alongside the prompt. **Blender locks the motion; the model builds the world.** Iteration moves to the free half, and the paid half usually lands first try.
|
|
15
|
-
|
|
16
|
-
Two halves, and keeping them separate is the whole discipline:
|
|
17
|
-
|
|
18
|
-
| Half | Lives in | Changes when |
|
|
19
|
-
|---|---|---|
|
|
20
|
-
| **Structure** — cuts, camera, timing, who is where | the blocking clip | you re-block |
|
|
21
|
-
| **Style** — what any of it looks like | references + prompt text | you restyle (see `slates-restyle-from-blocking`) |
|
|
22
|
-
|
|
23
|
-
## Before you start
|
|
24
|
-
|
|
25
|
-
1. `slates_blender_status` — confirms the bridge is up and returns fps, frame range, existing camera. If it reports `connected: false`, relay its hint and stop; nothing else here works.
|
|
26
|
-
2. Settle **format first**, because the blocking render *is* the film's format: fps, aspect, duration. 24fps is the default and makes cut times land on clean frames. Duration ≤ 30s (seedance-2.5's reference-video ceiling; 15s on the others).
|
|
27
|
-
3. Know the shot count. "One take" and "19 cuts" are different builds.
|
|
28
|
-
|
|
29
|
-
## Build order
|
|
30
|
-
|
|
31
|
-
Do these in order. Each stage is verifiable on its own, and a camera built before the geometry has nothing to frame.
|
|
32
|
-
|
|
33
|
-
### 1. Set the format
|
|
34
|
-
|
|
35
|
-
```python
|
|
36
|
-
scene = bpy.context.scene
|
|
37
|
-
scene.render.fps = 24
|
|
38
|
-
scene.render.fps_base = 1.0
|
|
39
|
-
scene.render.resolution_x, scene.render.resolution_y = 1920, 1080
|
|
40
|
-
scene.frame_start, scene.frame_end = 1, 720 # 30s at 24fps
|
|
41
|
-
result = {"seconds": 720 / 24}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Frame maths, stated once so you never redo it in your head: **frame = seconds × fps + 1**. A cut at 7.79s is frame 188.
|
|
45
|
-
|
|
46
|
-
### 2. Geometry and light — grey set, coded figures, named
|
|
47
|
-
|
|
48
|
-
Proxies only. A person is a box or a capsule with a sphere head. A car is a stretched cube. A can is a cylinder. **The SET is neutral grey — one light, a floor and enough wall that the space reads.** Colour is reserved for the figures, where it carries meaning (below); a grey set is what makes those few colours legible as notation rather than décor. Anything you spend on materials here you pay for twice, because the model repaints every surface anyway.
|
|
49
|
-
|
|
50
|
-
**Name every object for what it *is* in the story**, not `Cube.003`. The name is how you refer to it later, and it is how you keep your own timeline honest.
|
|
51
|
-
|
|
52
|
-
Two conventions that cost nothing now and save a re-roll later:
|
|
53
|
-
|
|
54
|
-
- **Colour is identity.** Give each character a distinct viewport colour and *write the mapping down* — `red = the boss, green = the kid, blue = the driver`. The generation prompt will restate that mapping so the model knows which grey body is which person across cuts. Without it, characters swap.
|
|
55
|
-
- **Encode facing on featureless proxies.** A box has no front. Mark one face red, the back black, the sides green, and say so in the prompt: `RED face = the direction he faces`. Otherwise the model guesses which way people are looking.
|
|
56
|
-
- **Checker a surface when SCALE or SPEED has to read.** Flat grey gives a model no parallax cue, so a fast move over a featureless floor reads as slow, and a big room reads as a small one. A black-and-white checker on the ground (or the wall a camera races past) gives it something to measure against. ⚠️ **Build it as GEOMETRY, never as a Checker Texture node.** The blocking render is Workbench, which draws one flat colour per material and never evaluates a shader node tree — a `TEX_CHECKER` comes out flat grey and you lose the cue without being told. Subdivide the plane and alternate `material_index` per face. Like every other colour here it is notation, so it goes in the translation list and gets dressed over.
|
|
57
|
-
|
|
58
|
-
```python
|
|
59
|
-
# Two materials, alternated per face. `TILE` is the square size in metres.
|
|
60
|
-
dark = bpy.data.materials.new("Checker_Dark")
|
|
61
|
-
dark.diffuse_color = (0.05, 0.05, 0.05, 1.0)
|
|
62
|
-
light = bpy.data.materials.new("Checker_Light")
|
|
63
|
-
light.diffuse_color = (0.80, 0.80, 0.80, 1.0)
|
|
64
|
-
floor.data.materials.append(dark) # material_index 0
|
|
65
|
-
floor.data.materials.append(light) # material_index 1
|
|
66
|
-
# Subdivide first (edit mode or a Subdivide modifier applied) so there ARE
|
|
67
|
-
# faces to alternate — a 2-triangle plane can only ever be one colour.
|
|
68
|
-
for face in floor.data.polygons:
|
|
69
|
-
cx, cy = face.center.x, face.center.y
|
|
70
|
-
face.material_index = (int(cx // TILE) + int(cy // TILE)) % 2
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
And the identity colour on each proxy:
|
|
74
|
-
|
|
75
|
-
```python
|
|
76
|
-
mat = bpy.data.materials.new("ID_Red")
|
|
77
|
-
mat.diffuse_color = (0.8, 0.1, 0.1, 1.0) # what the blocking render draws
|
|
78
|
-
obj.data.materials.append(mat)
|
|
79
|
-
obj.color = (0.8, 0.1, 0.1, 1.0) # same value, for viewport parity
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
The blocking render pins Workbench to `MATERIAL` shading, so **`mat.diffuse_color` is the value that reaches the clip** — and an object with no material at all falls back to a neutral grey, which is why an unpainted set still reads correctly. Set `obj.color` to the same value anyway: it costs one line, it makes the user's viewport match what renders, and keeping the two equal means you never have to remember which one is authoritative.
|
|
83
|
-
|
|
84
|
-
### 3. Camera
|
|
85
|
-
|
|
86
|
-
The whole of `slates-camera-language`. Build the rig, then keyframe it. Then **read back what you built** with `slates_blender_scene` — its `cutSeconds` is your cut list, and it is the number you will write timings against. That field is the authoritative one on EITHER rig — marker frames when cameras are bound to markers, the active camera's own keyframes when they are not. `camera.keyframeSeconds` is empty on a marker-bound edit, which is the rig `slates-camera-language` recommends for anything past a handful of cuts.
|
|
87
|
-
|
|
88
|
-
### 4. Handheld, last
|
|
89
|
-
|
|
90
|
-
Add it after the moves are right, never before — noise on top of a wrong path just hides the wrong path.
|
|
91
|
-
|
|
92
|
-
<!-- @inject:blender-action-curves -->
|
|
93
|
-
## Read animation curves from the active action layout
|
|
94
|
-
|
|
95
|
-
Blender 5 uses layered actions: curves belong to the channelbag for `animation_data.action_slot`, inside each layer's strips. A direct `action.fcurves` lookup failed on Blender 5.2.1 in the 2026-08-28 blocking run. Feature-detect the layout before changing interpolation or noise; an unanimated object can legitimately have no curves.
|
|
96
|
-
|
|
97
|
-
The snippets below use this small Blender-side iterator. It runs inside Blender; no add-on code is imported into the MCP package.
|
|
98
|
-
|
|
99
|
-
```python
|
|
100
|
-
def action_curves(datablock):
|
|
101
|
-
anim = getattr(datablock, "animation_data", None)
|
|
102
|
-
action = getattr(anim, "action", None)
|
|
103
|
-
if action is None:
|
|
104
|
-
return
|
|
105
|
-
if hasattr(action, "fcurves"):
|
|
106
|
-
yield from action.fcurves
|
|
107
|
-
elif getattr(anim, "action_slot", None) is not None:
|
|
108
|
-
for layer in action.layers:
|
|
109
|
-
for strip in layer.strips:
|
|
110
|
-
if hasattr(strip, "channelbag"):
|
|
111
|
-
bag = strip.channelbag(anim.action_slot)
|
|
112
|
-
if bag is not None:
|
|
113
|
-
yield from bag.fcurves
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
Use the datablock that owns the keyed property: the curve data for `eval_time`, the object for location and rotation, the camera data for lens. Confirm a named channel exists before assuming a keyframe operation created it.
|
|
117
|
-
<!-- @end:blender-action-curves -->
|
|
118
|
-
|
|
119
|
-
### 5. Verify the cuts
|
|
120
|
-
|
|
121
|
-
The one check that catches the most damage: on a multi-cut blocking, camera position, target and focal length must all change **exactly on the cut frame, with no transition frame between**. One interpolated frame reads as a whip-pan the model will faithfully reproduce.
|
|
122
|
-
|
|
123
|
-
```python
|
|
124
|
-
# On a jump-cut camera, key the final pre-cut pose at cut_frame - 1.
|
|
125
|
-
# CONSTANT belongs to that preceding key: interpolation controls its OUTGOING segment.
|
|
126
|
-
# Check object transforms and camera data (including lens). Repeat for a keyed target.
|
|
127
|
-
for owner in (cam, cam.data):
|
|
128
|
-
for fc in action_curves(owner):
|
|
129
|
-
keys = list(fc.keyframe_points)
|
|
130
|
-
for previous, current in zip(keys, keys[1:]):
|
|
131
|
-
if current.co[0] in CUT_FRAMES:
|
|
132
|
-
assert previous.co[0] == current.co[0] - 1, "Key the final pre-cut state first"
|
|
133
|
-
previous.interpolation = 'CONSTANT'
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
Also check nothing interpenetrates — proxies through floors, clones through the hero object, letters through each other. The model renders intersections as faithfully as it renders everything else.
|
|
137
|
-
|
|
138
|
-
### 6. Save a backup after every stage
|
|
139
|
-
|
|
140
|
-
Cheap, and blocking is iterative by nature.
|
|
141
|
-
|
|
142
|
-
```python
|
|
143
|
-
bpy.ops.wm.save_as_mainfile(filepath=path, copy=True)
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
## Render and generate
|
|
147
|
-
|
|
148
|
-
```
|
|
149
|
-
slates_blender_render_blocking { projectId, fps: 24 }
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
Renders the **scene camera** through scene settings and imports the mp4 into the project. The result does not depend on where the user left their viewport or mouse. It returns `asset.id` + `durationSeconds`.
|
|
153
|
-
|
|
154
|
-
Then:
|
|
155
|
-
|
|
156
|
-
```
|
|
157
|
-
slates_generate_video {
|
|
158
|
-
model: "seedance-2.5",
|
|
159
|
-
videoReferenceAssetIds: [<asset.id>],
|
|
160
|
-
videoReferenceSecondsEach: [<durationSeconds>],
|
|
161
|
-
characterAssetIds: [...], environmentAssetIds: [...], styleAssetIds: [...],
|
|
162
|
-
prompt: <written per slates-blocking-to-prompt>
|
|
163
|
-
}
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
**A focused reference stack:** one identity sheet per character, any location or look reference the brief needs, the blocking clip, and a prompt written against it. Add a reference only for a distinct requirement; more competing references add variables rather than guaranteeing fidelity. An audio reference is valid when voice or sound continuity needs it and the selected endpoint supports it.
|
|
167
|
-
|
|
168
|
-
Choose a model that accepts video references using `slates-model-selection`, then read its current reference caps. Video duration limits apply to the combined reference clips, not to each clip independently; quote each actual input duration.
|
|
169
|
-
|
|
170
|
-
**The figures are frozen, the people are not.** A blocking's stand-ins never act, and the model copies their stillness: the prompt says their stillness is not the acting and writes every person a performance that changes on every beat (`slates-blocking-to-prompt`, § Nobody holds still).
|
|
171
|
-
|
|
172
|
-
## Leaving holes on purpose
|
|
173
|
-
|
|
174
|
-
Where the model outperforms any blockout you could build — liquid, smoke, fire, cloth — **block a black gap instead** and say so in the prompt: `CUT 7 (14.5-17.0, black gap in the reference)`. You are reserving a slot, not forgetting one. Keep these exact times in the blocking record, then translate model-facing time cues through `slates-blocking-to-prompt`; not every endpoint accepts fractional timestamps.
|
|
175
|
-
|
|
176
|
-
## What not to do
|
|
177
|
-
|
|
178
|
-
- **Don't texture, light or material the blocking.** Grey is the specification. The reference supplies motion; the references supply look.
|
|
179
|
-
- **Don't animate what you don't need.** Heads especially — a proxy head turning wrong is worse than one that never turns.
|
|
180
|
-
- **Don't build the camera before the geometry.** It has nothing to aim at, and every value you set gets redone.
|
|
181
|
-
- **Don't skip reading the scene back.** Write timings from `slates_blender_scene`'s `cutSeconds`, never from what you intended to build.
|
|
182
|
-
- **Don't exceed the model's reference-video ceiling.** A 40s blocking against a 30s cap is rejected; trim it first.
|
|
183
|
-
|
|
184
|
-
## Related
|
|
185
|
-
|
|
186
|
-
`slates-camera-language` (rigs and moves) · `slates-blocking-to-prompt` (writing the prompt against the clip) · `slates-dialogue-blocking` (multi-character continuity) · `slates-restyle-from-blocking` (one blocking, many worlds) · `slates-model-selection` (routing)
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: slates-project-organization
|
|
3
|
-
description: "Organize a Slates project: asset codes (IMG-A12, VID-V3), folders, favorites, pins, Library references and templates. Use when locating media, moving or copying it between projects, reusing a production or keeping a project legible."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Organizing a Slates project
|
|
7
|
-
|
|
8
|
-
Slates already gives every reusable reference a home: the **Library**, in categories the user names (Characters, Locations, Products, Looks…; `slates_list_library`), each item used in a prompt as `@name`, or `#name` for a look. Keep references there rather than in folders, and add a category only when the user asks for one. Add an item with `slates_create_library_item` and read its `mention` from the result (a taken name comes back suffixed). `slates_update_library_item` renames or moves an item and rewrites every Shot that cites it.
|
|
9
|
-
|
|
10
|
-
**Folders hold work product by where it sits in the film.** Create with `slates_create_folder`; file assets with `slates_move_assets_to_folder` (`folderId: null` is the project root). Creating a folder does not open it: to file a batch as it is made, pass `folderId` on each generate or upload call; with none, results follow the folder open in the user's window. Folder, favorite and export tools take asset UUIDs, so resolve a code with `slates_list_assets` first. `slates_delete_folder` leaves its files in Media.
|
|
11
|
-
|
|
12
|
-
A favorite is a keeper, not a folder: `slates_set_asset_favorite` marks one asset (the heart on its card, `isFavorite` in `slates_list_assets`) without moving it. Use it to flag the takes worth a second look, and file them once the pick is made. Pins keep a picture one click from the prompt without moving it (`slates_pin_references`, `slates_list_pins`); a pin attaches nothing to a generation until you pass the picture as a reference.
|
|
13
|
-
|
|
14
|
-
To hand files out of Slates, `slates_export_assets` copies the originals of the assets you name into a directory (named by code, never overwriting): the way to deliver an image-only job that never needed a shot or a timeline.
|
|
15
|
-
|
|
16
|
-
To send media to another project, `slates_copy_assets_to_project` duplicates it and `slates_move_assets_to_project` re-homes it; either way it lands in no folder there with new codes. A move is refused while a Library item or a board shot still uses the picture: copy it instead, or bring the whole item with `slates_move_entity_to_project` (`slates_copy_library_item_to_project` copies one).
|
|
17
|
-
|
|
18
|
-
To reuse a whole piece rather than one reference, use a TEMPLATE: `slates_export_template` saves a board, a scene or one Shot (recipes, script words, references and the Library items they mention; never takes) as a file, `slates_get_template` reads what a file holds and its swap slots, and `slates_import_template` adds it to a project, optionally swapping a slot for one of that project's own assets. With no path, `slates_get_template` lists the saved templates. An import generates nothing: price the new Shots with `slates_get_board_quote` and fire them only after the user approves the price.
|
|
19
|
-
|
|
20
|
-
Conventions by project type:
|
|
21
|
-
- **Short film / narrative:** `Shots` (scene stills) · `Clips` (generated video) · `Final` (the export). Use one folder per scene (`Scene 1`, `Scene 2`, …) instead when the piece has distinct locations/beats.
|
|
22
|
-
- **Ad / UGC:** `Hooks` · `B-roll` · `Talking-head` · `Final`.
|
|
23
|
-
|
|
24
|
-
Rules of thumb:
|
|
25
|
-
- Scene stills, clips, and the final cut → file into the structural folder they belong to, as you make them.
|
|
26
|
-
- One folder per asset (folders are structure). Cross-cutting status (hero take, reject, variant) is a favorite or a label (`slates_update_asset`), not a folder.
|
|
27
|
-
- Keep the gallery legible: work product lives in folders; the reference scaffolding (sheets, plates, style images) stays in the Library.
|
|
28
|
-
|
|
29
|
-
## Asset codes — the shared vocabulary (IMG-A12 / VID-V3 / AUD-S1)
|
|
30
|
-
|
|
31
|
-
Every asset gets a short, stable code the moment it lands in a project, and the user sees it as the badge in the **top-left corner of every image and video card** in the gallery. This is the shared vocabulary between you and the user — it exists so neither of you ever has to quote a UUID.
|
|
32
|
-
|
|
33
|
-
**The scheme:**
|
|
34
|
-
- `IMG-A{n}` = images · `VID-V{n}` = videos · `AUD-S{n}` = audio.
|
|
35
|
-
- Numbering is **per project, per type** and counts up from 1; deleting IMG-A12 renumbers nothing. A move or copy to another project issues new codes there, so read codes again in the destination.
|
|
36
|
-
- Each asset also carries a **label**: the first ~4 meaningful words of its prompt, title-cased. Chat format is code + label: `IMG-A12 — Beach Sunset`.
|
|
37
|
-
|
|
38
|
-
**How to use it:**
|
|
39
|
-
- **User names a code** ("use IMG-A36 as the reference", "animate VID-V3's last frame") → resolve it via `slates_list_assets` (match the `code` field) to get the assetId, confirm back in the same vocabulary: "Got it — IMG-A36 — Marcus Rooftop Close-Up as the first frame."
|
|
40
|
-
- **You name assets** → code + label, never UUID, never "the beach one" (which of three?). The user matches your words to the badge by eye.
|
|
41
|
-
- **User seems confused** about what a code is or how to point you at an image → explain it in one line: "Every image and video in your gallery has a code badge in its top-left corner — like IMG-A36. Just say that code and I'll know exactly which one you mean."
|
|
42
|
-
- **Ambiguity** ("the sunset image" when several exist) → pull candidates with `slates_get_assets_batch` and offer the codes: "I see IMG-A12, IMG-A19, and IMG-A24 with sunsets — which one?"
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: slates-prompting-elevenlabs
|
|
3
|
-
description: "Prompt ElevenLabs Sound Effects v2 (eleven-sfx) for a single effect or loop. Use with slates_generate_audio on this model; covers physical causes, duration, material, space and prompt influence."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# ElevenLabs Sound Effects v2 — prompting
|
|
7
|
-
|
|
8
|
-
<!-- @card:start -->
|
|
9
|
-
<!-- slates-only -->
|
|
10
|
-
<!-- MACHINE-READ. Everything between the @card markers is extracted by
|
|
11
|
-
src/prompts/craft-cards.ts and returned on every cost estimate for this
|
|
12
|
-
model, so it is the ONE piece of positive craft guidance the agent cannot
|
|
13
|
-
skip. Measured 2026-08-30: a fact inlined where it cannot be skipped moved
|
|
14
|
-
compliance 0/8 to 30/32; the same guidance behind a fetch moved nothing.
|
|
15
|
-
Keep it under 2,400 characters (the build fails above that) and keep the
|
|
16
|
-
rationale, the receipts and the worked examples in the body below. -->
|
|
17
|
-
<!-- /slates-only -->
|
|
18
|
-
**Card: ElevenLabs Sound Effects v2.** ONE short sound with an exact length, or a seamless loop. A Slates audio surface with a real duration control and a real loop mode.
|
|
19
|
-
|
|
20
|
-
**The five levers**
|
|
21
|
-
1. **Describe the physical CAUSE, not the label** — `heavy oak door slams shut`, `boot scuffs on grit`, `a latch drops home`.
|
|
22
|
-
2. **Name the material and the space.** The material decides the timbre and the space decides the tail: `on wet concrete`, `in a tiled stairwell`, `across an empty warehouse`.
|
|
23
|
-
3. **One sound per generation.** A room with dialogue AND clatter AND ambience is one Seed Audio pass, not three effects.
|
|
24
|
-
4. **Pick the duration from the cut**, not from a feeling: roughly 0.5-1s for an `impact`, 2-4s for a `whoosh`, 8-22s for a `loopable bed`.
|
|
25
|
-
5. **Ask for a loop explicitly** — `seamless loop` — when the sound has to lie under a whole scene, and keep it featureless enough to survive the seam.
|
|
26
|
-
|
|
27
|
-
**Examples**
|
|
28
|
-
- `A heavy oak door slams shut in a stone hallway, brief reverberant tail.` (1.5s)
|
|
29
|
-
- `Steady rain on a tin awning, no thunder, no wind gusts, seamless loop.` (18s)
|
|
30
|
-
|
|
31
|
-
**Hard constraint:** it is billed per second and the duration is never left for the model to pick — that would make the charge non-deterministic. It is NOT a speech surface: a line in a specific voice is `inworld-tts-2`, and dialogue inside a scene is Seed Audio, which casts and performs the line in the room.
|
|
32
|
-
<!-- @card:end -->
|
|
33
|
-
|
|
34
|
-
<!-- @banned:start -->
|
|
35
|
-
<!-- slates-only -->
|
|
36
|
-
<!-- MACHINE-READ. Every `backticked` token between the @banned markers is
|
|
37
|
-
extracted by src/prompts/banned-tokens.ts and returned on this model's cost
|
|
38
|
-
estimate, and every submitted prompt is matched against it. Keep entries
|
|
39
|
-
backticked and prose outside the backticks. -->
|
|
40
|
-
<!-- /slates-only -->
|
|
41
|
-
**Never use** — a label is not a sound; describe the physical cause:
|
|
42
|
-
- `door sound`, `whoosh`, `footsteps`, `impact`, `ambience` standing alone
|
|
43
|
-
<!-- @banned:end -->
|
|
44
|
-
|
|
45
|
-
One short sound with an exact length. This Slates audio surface has a real duration control and a real loop mode.
|
|
46
|
-
|
|
47
|
-
## Where it routes
|
|
48
|
-
|
|
49
|
-
- **A single hit that has to land on a known frame** — door slam, whoosh, impact, UI blip, riser.
|
|
50
|
-
- **A seamless loop** you can lay under a whole scene — rain, engine hum, crowd murmur, machine noise.
|
|
51
|
-
- **NOT** layered scenes. A room with dialogue *and* clatter *and* ambience is one `seed-audio` pass, not three SFX generations.
|
|
52
|
-
- **NOT** speech. Dialogue, narration and scratch VO are `seed-audio` — it casts and performs the line inside the scene.
|
|
53
|
-
- **AUDIO-ONLY.** It cannot produce images or video.
|
|
54
|
-
|
|
55
|
-
## THE RULES
|
|
56
|
-
|
|
57
|
-
### 1. Describe the physical CAUSE, not the label
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
✗ door sound
|
|
61
|
-
✓ heavy oak door slams shut in a stone hallway
|
|
62
|
-
|
|
63
|
-
✗ whoosh
|
|
64
|
-
✓ a thick rope swung fast past a microphone, low air displacement
|
|
65
|
-
|
|
66
|
-
✗ footsteps
|
|
67
|
-
✓ boots on wet gravel, slow, one person
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
Material + weight + surface + room. Naming all four is the difference between a usable effect and a stock-library shrug. Cap is 450 characters — you will not need them.
|
|
71
|
-
|
|
72
|
-
### 2. One sound per generation
|
|
73
|
-
|
|
74
|
-
This surface makes a single event. A door, then footsteps, then a siren is three generations layered on the timeline — or one `seed-audio` scene, which is usually cheaper and always more coherent.
|
|
75
|
-
|
|
76
|
-
### 3. Duration is always explicit, and it is the price
|
|
77
|
-
|
|
78
|
-
Slates **always sends** `durationSeconds`. (Left null the model picks, which makes the charge non-deterministic — so it is never left null.) The window it must fall in:
|
|
79
|
-
|
|
80
|
-
<!-- @inject:thresholds -->
|
|
81
|
-
<!-- GENERATED from @slatesvideo/shared — do not edit between the markers.
|
|
82
|
-
Source: CONFIRM_CREDITS, DEVIATION_FACTOR and the audio bounds in
|
|
83
|
-
packages/shared/src/operations/index.ts. Every number here is REFUSED by an
|
|
84
|
-
op when a prompt gets it wrong, which is why none of them is typed by hand
|
|
85
|
-
any more: this block replaced four claims that contradicted the code. -->
|
|
86
|
-
|
|
87
|
-
**The thresholds, from the code that enforces them:**
|
|
88
|
-
|
|
89
|
-
- **Confirm gate:** above **17 credits** an op returns `requires_confirm` and will not
|
|
90
|
-
proceed until you re-call with `confirm: true`. This is a code gate, not permission to spend: every generation still needs the user-approved plan or quote.
|
|
91
|
-
- **Deviation pause:** the desktop Slates Director stops and re-asks when projected generation spend
|
|
92
|
-
exceeds the approved plan by more than **20%**. You do not trigger this; the app does.
|
|
93
|
-
- **Seed Audio duration:** **3–120 seconds.** There is no duration
|
|
94
|
-
parameter on the model — the number you pass is written into the prompt AND is what the user is
|
|
95
|
-
billed. Outside that range the op refuses rather than clamping.
|
|
96
|
-
- **Sound Effects duration:** **1–22 seconds**, billed per second, never left for the
|
|
97
|
-
model to pick.
|
|
98
|
-
|
|
99
|
-
Never quote a credit figure from memory: `slates_estimate_generation_cost` returns the real one.
|
|
100
|
-
<!-- @end:thresholds -->
|
|
101
|
-
|
|
102
|
-
| Kind of sound | Ask for |
|
|
103
|
-
|---|---|
|
|
104
|
-
| impact, hit, click | 0.5–1s |
|
|
105
|
-
| whoosh, riser, transition | 2–4s |
|
|
106
|
-
| loopable bed | 8–22s + `loop: true` |
|
|
107
|
-
|
|
108
|
-
Over-asking pads the tail with room tone you then trim. Under-asking clips the decay.
|
|
109
|
-
|
|
110
|
-
### 4. Loops
|
|
111
|
-
|
|
112
|
-
`loop: true` tiles without a seam — rain, engine hum, crowd murmur, machine noise. Combine with a longer duration so the loop point is not obvious.
|
|
113
|
-
|
|
114
|
-
For a bed longer than 22s, this is the wrong surface: `seed-audio` runs to 120s in one pass.
|
|
115
|
-
|
|
116
|
-
### 5. Prompt influence
|
|
117
|
-
|
|
118
|
-
`promptInfluence` 0–1, default 0.3. Higher hugs your wording with less variation between takes; lower explores. Raise it when a re-roll keeps wandering off the brief; lower it when every take sounds like the same take.
|
|
119
|
-
|
|
120
|
-
## Iterating
|
|
121
|
-
|
|
122
|
-
- Re-rolls that keep missing = the prompt named a **label** instead of a **cause**. Rewrite it as a physical event.
|
|
123
|
-
- A hit that lands but sounds wrong in the scene is usually a *room* problem — name the space ("in a stone hallway", "in a padded studio", "outdoors, no reflections").
|
|
124
|
-
- Three failed takes means the prompt is wrong, not the seed.
|
|
125
|
-
|
|
126
|
-
## Content notes
|
|
127
|
-
|
|
128
|
-
ElevenLabs applies its own moderation. See slates-content-policy.
|