Hello,
if you like to count only the joints for a selected character you can used the following short script:
{
string $currentSelected[] = ls -sl
;
select -hi $currentSelected;
string $bonesOnly[] = filterExpand -sm 3
;
int $sizeBone = size ($bonesOnly)
;
print ("Number of bones:t"+$sizeBone);
}
and if you like to count only the selected elements you can do something like:
{// Number of selected Items
string $selectionList[] = ls -sl
;
int $sizeOfSelectionList = size ($selectionList)
;
print $sizeOfSelectionList;
}
Hope this helps, let me know if you need more infos.
-a,