t3d. KeyframeClip

An KeyframeClip is a reusable set of keyframe tracks which represent an animation.

Constructor

new KeyframeClip(nameopt, tracksopt, durationopt)

Parameters:
NameTypeAttributesDefaultDescription
nameString<optional>
''A name for this clip.
tracksArray.<t3d.KeyframeTrack><optional>
[]An array of KeyframeTracks.
durationNumber<optional>
The duration of this clip (in seconds). If not passed, the duration will be calculated from the passed tracks array.

Members

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.
Type:
  • Number

name :String

A name for this clip.
Type:
  • String

tracks :Array.<t3d.KeyframeTrack>

An array of KeyframeTracks.
Type:

Methods

resetDuration() → {t3d.KeyframeClip}

Sets the duration of the clip to the duration of its longest KeyframeTrack.
Returns:
Type: 
t3d.KeyframeClip