AnimationSequence

From oWiki

Jump to: navigation, search

Contents


Attributes

id

string  ( r )
The Sequence's unique identifier.


Methods

addTrack( name )

name: string

Add an track to the sequence by name.

addTransition( type, cutin, nextTrack )

type: int
cutin: float
nextTrack: string

Add a transition to the next track.

type is the type of transition.
cutin is the cut-in time of the next track.
Possible values for type are:

Value Description
BLEND_SWITCH Stop source and start next.
BLEND_WHILE_ANIMATE Cross fade. Blend source out while blend next track in.
BLEND_THEN_ANIMATE Blend source to the first frame of next track. When done, start next track.

play( rate, loop )

rate: float
loop: bool

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

pause()

Pause animation sequence.

resume()

Resume animation sequence.

stop()

Stop animation sequence.

destroy()

Destroy the animation sequence.
Personal tools