AnimationBlender

From oWiki

Jump to: navigation, search

Contents


Attributes

id

string  ( r )
The Blender's unique identifier.


Methods

addTrack( name )

name: string

Add an track to the blender by name.

createBlendMask( track, weight )

track: string
weight: float

Create a new blend mask for the named animation track and assign an initial weight value to the skeletal animation.

weight is the value all the blend mask entries will be initialized with (negative to skip initialization).

addBlendMask( track, bone, weight )

track: string
bone: string
weight: float

Add a blend mask weight to an individual bone within the named animation track.

addBlendMasks( track, weights )

track: string
weights: array of float

Set the blend mask data using an array of bone weights. The size of the array must match the number of bones in the skeleton.

setTrackStartPos( track, pos )

track: string
pos: float

Sets the given track's start position.

setTrackWeight( track, weight )

track: string
weight: float

Sets the overall blend weight for the named track.

play( rate, loop )

rate: float
loop: bool

Play the animation, loop to beginning if loop is set to true.

pause()

Pause animation.

resume()

Resume animation.

stop()

Stop animation.

destroy()

Destroy the animation blender.
Personal tools