newspeoplefor developersdocumentationdownloads

nSkinAnimator Script Interface

nskinanimator:

Super Class:

C++ Class:

Info

Provide an animated joint skeleton for nSkinShape node.

Commands:


setanim

Command Input:
s(AnimResource)
Command Output:
v
Command Description:
Set the name of the anim resource.

getanim

Command Input:
v
Command Output:
s(AnimResource)
Command Description:
Get the name of the anim resource.

beginjoints

Command Input:
i(NumJoints)
Command Output:
v
Command Description:
Begin defining joints.

setjoint

Command Input:
i(jointIndex), i(parentJointIndex), fff(poseTranslate) ffff(poseRotate) fff(poseScale s(name)
Command Output:
v
Command Description:
Set a joint.

endjoints

Command Input:
v
Command Output:
v
Command Description:
Finish defining joints

getnumjoints

Command Input:
i(JointIndex)
Command Output:
i(NumJoints)
Command Description:
Get number of joints

getjoint

Command Input:
i(JointIndex)
Command Output:
i(ParentJointIndex) fff(poseTranslate) ffff(poseRotate) fff(poseScale n(name)
Command Description:
Get joint attributes at given joint index.

beginclips

Command Input:
i(NumClips)
Command Output:
v
Command Description:
Begin adding animation clips to a state.

setclip

Command Input:
i(ClipIndex), i(AnimGroupIndex), s(ClipName)
Command Output:
v
Command Description:
Add an animation clip to a state.

endclips

Command Input:
v
Command Output:
v
Command Description:
Finish adding animation clips to a state.

getnumclips

Command Input:
v
Command Output:
i(NumClips)
Command Description:
Finish adding animation clips to a state.

getclipat

Command Input:
i(ClipIndex)
Command Output:
s(ClipWeightChannelName)
Command Description:
Get clip information.

beginanimeventtracks

Command Input:
i(ClipIndex),i(numTracks)
Command Output:
v
Command Description:
Begin adding animation event tracks.

beginanimeventtrack

Command Input:
i(ClipIndex),i(TrackIndex),s(Name),i(numEvents)
Command Output:
v
Command Description:
Begin and animation event tracks.

setanimevent

Command Input:
i(ClipIndex),i(TrackIndex),i(EventIndex),f(Time),fff(Translate),ffff(Rotate),fff(Scale)
Command Output:
v
Command Description:
Set an animation event.

endanimeventtrack

Command Input:
i(ClipIndex),i(TrackIndex)
Command Output:
v
Command Description:
Finish defining an animation event track.

endanimeventtracks

Command Input:
i(ClipIndex)
Command Output:
v
Command Description:
Finish defining an animation event track.

setanimenabled

Command Input:
b(AnimEnabled)
Command Output:
v
Command Description:
Enable/disable animation evaluation.

isanimenabled

Command Input:
v
Command Output:
b(AnimEnabled)
Command Description:
Get animation enabled state.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.