switchNCdisplay.mel
I wrote these few lines of MEL cause one of the fellow students at AM asked for such
feature in Maya, to hide/unhide NURBS curves in the active viewport.
Usually animation controls are made of these so it's more comfortable to hide/unhide
them with a single click while doing playback or playblast, checking sillhouette etc.
You can create marking menu/shelf button/keyboard shortcut out of this or use it in
your scripts perhaps - it's up to you. I hope you find it useful. -TTesla
*/
string $panelName = `getPanel -wf`;
if (`modelEditor -q -nc $panelName`) {
modelEditor -e -nurbsCurves 0 $panelName;
}
else
modelEditor -e -nurbsCurves 1 $panelName;






