Vizard 8 » Command Index » Vizard objects » node3d » <node3d:avatar>.execute
8.0

<node3d:avatar>.execute

Execute animation

<node3d:avatar>.execute(  
animation  
delay_in = viz.AVATAR_DELAY  
delay_out = viz.AVATAR_DELAY  
freeze = False  
weight = 1.0  
)  
animation
The animation to execute
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
weight = 1.0
Weight of animation. Controls how much it will be blended with other animations.

Remarks

This will execute the specified animation on top of the current animation cycle.

If the freeze option is set, the animation will freeze when it reaches the last frame. This is usefull when you have an animation of an avatar being shot or falling down. With the freeze option, the avatar will stay on the ground after the animation has finished. Use the stopAction command to remove a frozen animation.

Return Value

None

Example

avatar = viz.add('vcc_female.cfg')
avatar.state(1)
# Perform animation 2 once while animation 1 is cycling
avatar.execute(2)

See also

<node3d:avatar>.blend