Vizard 8 » Command Index » Vizard modules » vizact » <vizact>.animation
8.0

<vizact>.animation

Generates an animation action

<vizact>.animation(  
number  
delay_in = viz.AVATAR_DELAY  
delay_out = viz.AVATAR_DELAY  
freeze = False  
)  
number
The animation number to perform
delay_in = viz.AVATAR_DELAY
The amount of time in seconds to blend into the full animation.
delay_out = viz.AVATAR_DELAY
The amount of time in seconds to blend out of the animation once it is finished
freeze = False
Freeze the animation on the last frame

Remarks

This will generate an action that will perform the given animation on the avatar.

Return Value

An action that can be applied to any avatar object

Example

female = viz.add('vcc_female.cfg')
anim1 = vizact.animation(2)
anim2 = vizact.animation(3)

female.addAction(anim1)
female.addAction(anim2)

#Female will perform animation 2 followed by animation 3

See also

<vizact>.headto
<vizact>.speak
<vizact>.turn
<vizact>.walkTo