Skip to content

makeClipsFile beta ​

Function of @v12-engine/editor

ts
export declare function makeClipsFile(source: Document, model: Document, options: RetargetOptions & {
    existing?: Uint8Array;
}): Promise<{
    data: Uint8Array;
    clips: RetargetedClip[];
    kept: string[];
}>;

The bytes of a model's file of clips: the clips of source on its bones (retargetClips), after those of the file it has now (existing), which it keeps but for those of the same names. Written in the page with glTF Transform, as the editor writes a model it cuts out; nothing of it goes to a game's page