<node3d:avatar>.state

Set the avatars animation cycle

 

<node3d:avatar>.state(
    animation    
    delay = viz.AVATAR_DELAY    

)

 

animation

The animation to play


delay = viz.AVATAR_DELAY

This optional value specifies how much time it should take for the animation to fully blend in.


Remarks

This action will clear all animations from the avatars cycle, and set it to the given animation.

Return Value

None

Example

avatar = viz.add('vcc_female.cfg')
avatar.state(2)