MotionScript

@motion-script/core


@motion-script/core / ModelAnimation3D

Interface: ModelAnimation3D

Defined in: render3d/graphics3d.ts:27

One clip of a model's baked animation, sampled at an explicit time.

Properties

clip?

optional clip?: string | number

Defined in: render3d/graphics3d.ts:29

Clip name, or its index in the file. Defaults to the first clip.


time

time: number

Defined in: render3d/graphics3d.ts:36

Seconds into the clip. Explicit by design — the renderer seeks to this time rather than advancing by a delta, which is what keeps a model's animation identical whether the frame was reached by playing forward or by scrubbing backwards.


weight?

optional weight?: number

Defined in: render3d/graphics3d.ts:38

Blend weight, for cross-fading clips. Default 1.