Segment Scale Compensate using MEL


#1

Characters doing weird scale things in Unity coming from Maya? Segment Scale Compensate driving you crazy? This MEL script will fix you up, selecting all joints and turning SSC off for all joints.

{
string $selected[] = ls -type joint;
select -r $selected;
}
string $sel[] = ls -sl;
string $singleJnt;
for ($singleJnt in $sel)
{
setAttr ($singleJnt + “.segmentScaleCompensate”) 0;
}


#2

You can also select your root joint, select hierarchy, then open the attribute spreadsheet and batch change properties there. Just enter “segment” in the search field, then click the header to select everything and enter 1.