Skip to content

writeClipsFile beta ​

Function of @v12-engine/editor

ts
export declare function writeClipsFile(model: Document, options: {
    existing?: Uint8Array;
    clips: readonly KeyedClip[];
}): Promise<{
    data: Uint8Array;
    kept: string[];
}>;

The bytes of a model's file of clips with these clips in it as their keys (E2E plan AN2): after those of the file it has now (existing), which it keeps but for those of the same names. A clip of the model's own file, or of its rig's, edited here goes into the model's file of clips under its name, and plays ahead of the one it came from (ModelDef.clipsFile); the file it came from is not touched. Written in the page with glTF Transform, as makeClipsFile writes an import