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

<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')