Monday, March 7, 2011

Mel Script--Hiding Animation Curve in Maya

We can create a hot key in Maya and dump the script below. It will become very handy to hide and unhide rig controllers.


string $panelName=`getPanel -wf`;

if (`modelEditor -q -nurbsCurves $panelName` == 0){
modelEditor -e -nurbsCurves 1 $panelName;

}
else
{
modelEditor -e -nurbsCurves 0 $panelName;
}

I hope this will help.

No comments: