Keep MiniMax hold from injecting amplitude and speed.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user