Vizard 7 » Command Index » Vizard objects » node3d » <node3d:avatar>.getDuration
7.7

<node3d:avatar>.getDuration

Returns the length of an animation

<node3d:avatar>.getDuration(  
animation  
)  
animation
Animation number

Remarks

This action will return the duration of the animation in seconds

Return Value

Duration of the animation in seconds

Example

avatar = viz.add('vcc_female.cfg')
length = avatar.getDuration(1)
print('Animation 1 is',length,'seconds long')