Constructor
new KeyframeClip(nameopt, tracksopt, durationopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
name | String | <optional> | '' | A name for this clip. |
tracks | Array.<t3d.KeyframeTrack> | <optional> | [] | An array of KeyframeTracks. |
duration | Number | <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:
- Array.<t3d.KeyframeTrack>
Methods
resetDuration() → {t3d.KeyframeClip}
Sets the duration of the clip to the duration of its longest KeyframeTrack.
Returns:
- Type:
- t3d.
KeyframeClip