//this is a good toggle for whatever window you have selected //toggles visibility of nurbs, paste in as a user hotkey //nurbs $currentPanel = `getPanel -withFocus`; string $panelType = `getPanel -to $currentPanel`; if ($panelType == "modelPanel") { int $on_flag = `modelEditor -q -nurbsCurves $currentPanel`; if ($on_flag == 0) { modelEditor -e -nurbsCurves 1 $currentPanel; } else { modelEditor -e -nurbsCurves 0 $currentPanel; }
//this is a good toggle for whatever window you have selected
ReplyDelete//toggles visibility of nurbs, paste in as a user hotkey
//nurbs
$currentPanel = `getPanel -withFocus`;
string $panelType = `getPanel -to $currentPanel`;
if ($panelType == "modelPanel")
{
int $on_flag = `modelEditor -q -nurbsCurves $currentPanel`;
if ($on_flag == 0)
{
modelEditor -e -nurbsCurves 1 $currentPanel;
}
else
{
modelEditor -e -nurbsCurves 0 $currentPanel;
}
}