Keep MiniMax hold from injecting amplitude and speed.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-29 08:14:13 -05:00
co-authored by Cursor
parent c4e74628ee
commit 930bbf7c7b
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -28,7 +28,11 @@ export function sectionsFrom(value = {}) {
export function compileSections(value) {
const s = sectionsFrom(value)
const camera = s.cameraBeats.length ? ['One continuous take.', ...s.cameraBeats.map((b,i) => {
const move = b.moves[0] === 'hold' ? 'hold the camera locked on a tripod' : b.moves.map(m=>m.replaceAll('-',' ')).join(' and ') + (b.moves.length > 1 ? ' simultaneously' : '')
const hold = b.moves[0] === 'hold' || b.moves.includes('hold')
if (hold) {
return `${i ? 'Then' : 'First'}, hold the camera locked on a tripod.`
}
const move = b.moves.map(m=>m.replaceAll('-',' ')).join(' and ') + (b.moves.length > 1 ? ' simultaneously' : '')
const timing = b.durationSec == null ? 'through the end of the remaining clip' : i === 0 ? `for the first ${b.durationSec} seconds` : `for ${b.durationSec} seconds`
return `${i ? 'Then' : 'First'}, ${move}, ${{subtle:'small',moderate:'medium',large:'large'}[b.amplitude]} amplitude, ${b.speed} speed, ${timing}.`
}), 'No cuts. No new setup.'].join(' ') : s.camera