<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