identifier for the KeyframeTrack.
array of keyframe times.
values for the keyframes at the times specified.
The type of interpolation to use. See Animation Constants for possible values. Default is InterpolateLinear.
The identifier for the KeyframeTrack.
an array with the values related to the times array, converted internally to aa Float32Array.
The type of interpolation to use. See Animation Constants for possible values. Default is InterpolateLinear.
Float32Array, the type of the buffer internally used for the times.
Float32Array, the type of the buffer internally used for the values.
The track's name can refer to morph targets or bones or possibly other values within an animated object. See PropertyBinding.parseTrackName for the forms of strings that can be parsed for property binding: The name can specify the node either using its name or its uuid (although it needs to be in the subtree of the scene graph node passed into the mixer). Or, if the track name starts with a dot, the track applies to the root node that was passed into the mixer. Usually after the node a property will be specified directly. But you can also specify a subproperty, such as .rotation[x], if you just want to drive the X component of the rotation via a float track. You can also specify bones or multimaterials by using an object name, for example: .bones[R_hand].scale; the red channel of the diffuse color of the fourth material in a materials array - as a further example - can be accessed with .materials[3].diffuse[r]. PropertyBinding will also resolve morph target names, for example: .morphTargetInfluences[run]. Note: The track's name does not necessarily have to be unique. Multiple tracks can drive the same property. The result should be based on a weighted blend between the multiple tracks according to the weights of their respective actions.
A Float32Array, converted from the times array which is passed in the constructor.
A Float32Array, converted from the values array which is passed in the constructor.
Creates a new DiscreteInterpolant from the times and values. A Float32Array can be passed which will receive the results. Otherwise a new array with the appropriate size will be created automatically.
Creates a new LinearInterpolant from the times and values. A Float32Array can be passed which will receive the results. Otherwise a new array with the appropriate size will be created automatically.
Create a new CubicInterpolant from the times and values. A Float32Array can be passed which will receive the results. Otherwise a new array with the appropriate size will be created automatically.
Returns a copy of this track.
Creates a LinearInterpolant, CubicInterpolant or DiscreteInterpolant, depending on the value of the interpolation parameter passed in the constructor.
Returns the interpolation type.
Returns the size of each value (that is the length of the .values array divided by the length of the .times array).
Removes equivalent sequential keys, which are common in morph target sequences.
Scales all keyframe times by a factor. Note: This is useful, for example, for conversions to a certain rate of frames per seconds (as it is done internally by animationClip.CreateFromMorphTargetSequence).
Sets the interpolation type. See Animation Constants for choices.
Moves all keyframes either forward or backward in time.
Converts the track to JSON.
Removes keyframes before startTime and after endTime, without changing any values within the range [startTime, endTime].
Performs minimal validation on the tracks. Returns true if valid. This method logs errors to the console, if a track is empty, if the .valueSize is not valid, if an item in the .times or .values array is not a valid number or if the items in the times array are out of order.
Generated using TypeDoc
A Track of numeric keyframe values.