Skip to main content

AnimationTrack

AnimationTrack

Represents animation of a meaningful multi-variate thing, such as 3d vector or single scalar

Kind: global class

animationTrack.name : string

Human-readable label

Kind: instance property of AnimationTrack

animationTrack.path : Array.<string>

What property are we animating?

Kind: instance property of AnimationTrack

animationTrack.curves : Array.<AnimationCurve>

Kind: instance property of AnimationTrack

animationTrack.type : string

Special designator to help with interpolation For example, quaternion tracks will require sampled value to be normalized Based on this value, different bindings will be used

Kind: instance property of AnimationTrack

animationTrack.start_time ⇒ number

Kind: instance property of AnimationTrack

animationTrack.end_time ⇒ number

Kind: instance property of AnimationTrack

animationTrack.duration ⇒ number

Time duration of the longest curve, in seconds

Kind: instance property of AnimationTrack

animationTrack.curve_count ⇒ number

Kind: instance property of AnimationTrack

animationTrack.isAnimationTrack : boolean

Kind: instance property of AnimationTrack
Read only: true

animationTrack.sample(output, output_offset, time)

Kind: instance method of AnimationTrack

ParamType
outputArray.<number> | Float32Array | Float64Array
output_offsetnumber
timenumber

AnimationTrack.from(curves, [name]) ⇒ AnimationTrack

Kind: static method of AnimationTrack

ParamType
curvesArray.<AnimationCurve>
[name]string