Joint Count Hud
Mel Scripting January 10th, 2008
Description : This hud is only useful for riggers who need to know the number of joints for their characters, if the game engine has limited the joint numbers.Type “HudJointCountProc” after sourcing the scripts below.
global proc int s_jointCountProc()
{
string $allJoints[] = `ls -type joint`;
return (size($allJoints));
}
global proc HudJointCountProc()
{
string $jointCountExists;
if (`headsUpDisplay -ex HUDJointCount`)
{
headsUpDisplay -rem HUDJointCount;
}else
{
int $jointbb = `headsUpDisplay -nfb 0`;
headsUpDisplay
-section 0
-block $jointbb-blockSize "small"
-label "Joints:"
-labelFontSize "small"
-command "s_jointCountProc()"
-event "SelectionChanged"
-nodeChanges "attributeChange" HUDJointCount;
}
}