Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AnimationClip

An AnimationClip is a reusable set of keyframe tracks which represent an animation. For an overview of the different elements of the three.js animation system see the "Animation System" article in the "Next Steps" section of the manual.

Hierarchy

  • AnimationClip

Index

Constructors

constructor

  • Note: Instead of instantiating an AnimationClip directly with the constructor, you can use one of its static methods to create AnimationClips: from JSON (.parse), from morph target sequences (.CreateFromMorphTargetSequence,e .CreateClipsFromMorphTargetSequences) or frome animation hierarchies (.parseAnimation) - if your model doesn't already hold AnimationClips in its geometry's animations array.

    Parameters

    • Optional name: string

      A name for this clip.

    • Optional duration: number

      The duration of this clip (in seconds). If a negative value is passed, the duration will be calculated from the passed tracks array.

    • Optional tracks: I3JS.KeyframeTrack[]

      an array of KeyframeTracks.

    • Optional blendMode: AnimationBlendMode

    Returns I3JS.AnimationClip

Properties

blendMode

default

THREE.NormalAnimationBlendMode

duration

duration: number

The duration of this clip (in seconds). This can be calculated from the .tracks array via .resetDuration.

default

-1

name

name: string

A name for this clip. A certain clip can be searched via .findByName.

results

results: any[]

tracks

An array containing a KeyframeTrack for each property that are animated by this clip.

uuid

uuid: string

The UUID of this clip instance. It gets automatically assigned and shouldn't be edited.

Methods

CreateClipsFromMorphTargetSequences

CreateFromMorphTargetSequence

clone

findByName

optimize

parse

parseAnimation

resetDuration

toJSON

trim

validate

  • validate(): boolean

Generated using TypeDoc