//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; }
Animation Director, Lead and Animator // worked at Framestore, Blizzard Entertainment, Nickelodeon Animation, Warner Brothers Animation and Industrial Light & Magic / Teacher @animationmentor / @academy_of_art / @spungella Animation Workshop
1 comment:
//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;
}
}
Post a Comment