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

<node3d:avatar>.getAnimationSpeed

Returns animation speed

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

Remarks

This command will return the current time factor of the animation.

If the animation is 0, then the speed of the avatars animation cycle will be returned.

If the animation ID is valid and it is currently being executed, then the speed of the animation action will be returned

If the animation ID is invalid or it is not currently being executed, then 0 will be returned

Return Value

Animation speed

Example

Getting Cycle Speed
avatar.state(2)
avatar.setAnimationSpeed(0,4)

#This will print out '4'
print(avatar.getAnimationSpeed(0))


Getting Action Speed
avatar.execute(6)
avatar.setAnimationSpeed(6,2)

#This will print out '2'
print(avatar.getAnimationSpeed(6))

See also

<node3d:avatar>.getAnimationTime
<node3d:avatar>.setAnimationSpeed
<node3d:avatar>.setAnimationTime