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