global proc string tSetCurveColor(string $curveContronl)
{
//tSetCurveColor "curveName";
int $i;
float $poss[] = `xform -q -ws -t $curveContronl`;
if($poss[0] > 0)$i=6;
if($poss[0] < 0)$i=13;
if($poss[0] < 0.001 && $poss[0] > -0.001)$i=17;
string $shapes[] = `listRelatives -shapes $curveContronl `;
setAttr ($shapes[0] + ".overrideEnabled") 1;
setAttr ($shapes[0] + ".overrideColor") $i;
return $curveContronl;
}
maya
最新推荐文章于 2023-01-21 11:30:46 发布