Go to Spungella for new posts.

> academyanimation is no longer active and serves as archives

Saturday, March 10, 2007

Custom Hotkey - Nurbs Controller On/Off

This post has moved to Spungella.

1 comment:

jeff said...

//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;
}

}

Banner