Skip to content

makeAnimationFile beta ​

Function of @v12-engine/editor

ts
export declare function makeAnimationFile(model: Document, clip: KeyedClip, facts?: {
    from?: string;
    def?: ClipDef;
}): Promise<Uint8Array>;

The bytes of an animation file (E2E plan AN5): a clip as it is, a thing of its own that no model owns, with the bones and rest of the skeleton it was made on (a bone's bind folded into its node's turn, so that the file needs no skin) and nothing that skeleton draws. Applied to a model by retargetClips or at run time (ModelDef.animationFiles)