Vizard 7 » Command Index » Vizard objects » node3d » <node3d:avatar>.getAnimationID
7.6

<node3d:avatar>.getAnimationID

Returns animation ID

<node3d:avatar>.getAnimationID(  
name  
)  
name
Animation name

Remarks

This command will return the ID of the animation with the specified name. If the animation does not exist, the command will return -1.

Note: The animation name is case sensitive

Return Value

Animation ID

Example

walkID = avatar.getAnimationID('walk.caf')
avatar.state(walkID)

See also

<node3d:avatar>.getAnimationList