KeyframeTrack

Base class for property track.

Constructor

(abstract) new KeyframeTrack(target, propertyPath, times, values, interpolantopt)

Parameters:
NameTypeAttributesDefaultDescription
targetObject3D | Material
propertyPathstring
timesArray
valuesArray
interpolantKeyframeInterpolant.constructor<optional>
LinearInterpolant

Methods

getValue(t, outBuffer) → {Array}

Get value at time. The value will be interpolated by interpolant if time is between keyframes.

Parameters:
NameTypeDescription
tnumber

time

outBufferArray

output buffer

Returns:

output buffer

Type: 
Array

setInterpolant(interpolant) → {KeyframeTrack}

Set interpolant for this keyframe track.

Parameters:
NameTypeDescription
interpolantKeyframeInterpolant.constructor
Returns:
Type: 
KeyframeTrack