@motion-script/core / PrecompResult
Interface: PrecompResult
Defined in: runtime/precompisition.ts:211
Properties
assets
assets:
ReadonlyMap<string,AssetTrack>
Defined in: runtime/precompisition.ts:232
Complete asset timeline assembled by merging every scene's own asset usage, each shifted by that scene's global startFrame. Keyed by stable asset key (src for images/videos, "Family" for fonts).
buildErrors
buildErrors:
BuildError[]
Defined in: runtime/precompisition.ts:234
Errors thrown by scene generators during the build pass.
complete
complete:
boolean
Defined in: runtime/precompisition.ts:242
True once every scene has been measured. False for the intermediate
results Precomp.runAsync publishes while it is still working, where
totalFrames/totalDuration cover only the scenes measured so far and
will grow. UI that shows a timeline length should say so while this is
false rather than presenting a partial total as final.
fps
fps:
number
Defined in: runtime/precompisition.ts:212
globalAudio
globalAudio:
AudioRequest[]
Defined in: runtime/precompisition.ts:222
Project-level audio beds (ProjectConfig.audioTracks), resolved against
the project total. Unlike ScenePrecomp.audioRequests these carry
absolute timeline times — consumers schedule them with a zero scene
offset. Re-derived on every assembly, so a bed bounded against a partial
total while the background precomp runs is corrected as scenes land.
scenes
scenes:
ScenePrecomp[]
Defined in: runtime/precompisition.ts:214
Per-scene durations and audio, in timeline order.
timings?
optionaltimings?:PrecompTimings
Defined in: runtime/precompisition.ts:247
Per-phase wall-clock breakdown, present only when a PrecompProfile was injected. Diagnostics — nothing in the engine reads this.
totalDuration
totalDuration:
number
Defined in: runtime/precompisition.ts:226
Total duration in seconds.
totalFrames
totalFrames:
number
Defined in: runtime/precompisition.ts:224
Total frame count across all scenes.