MotionScript

@motion-script/core


@motion-script/core / deserializeScenePrecomp

Function: deserializeScenePrecomp()

deserializeScenePrecomp(raw): ScenePrecomp | null

Defined in: runtime/precomp-cache.ts:113

Rebuild a scene pass from JSON, or return null if the input is not a well-formed entry of the current format.

Every field is checked rather than trusted. This data comes off disk, where it can be truncated by a crash mid-write, hand-edited, or left over from an older release — and the failure mode of accepting a malformed entry is a wrong timeline that looks perfectly normal. Rejecting costs one scene's measurement.

Parameters

raw

unknown

Returns

ScenePrecomp | null