Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //toggle all
- {
- string $currentPanel = `getPanel -withFocus`;
- int $toggleMe3;
- if($toggleMe3 == 0)
- {
- modelEditor -e -allObjects 1 $currentPanel;
- $toggleMe3 = 1;
- }
- else
- {
- modelEditor -e -allObjects 0 $currentPanel;
- $toggleMe3 = 0;
- }
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- //toggle nurbs curves
- {
- string $currentPanel = `getPanel -withFocus`;
- string $nurbsCurveVis = `modelEditor -q -nurbsCurves $currentPanel`;
- print $nurbsCurveVis;
- if ($nurbsCurveVis == 1)
- {
- modelEditor -e -nurbsCurves 0 $currentPanel;
- }
- if ($nurbsCurveVis == 0)
- {
- modelEditor -e -nurbsCurves 1 $currentPanel;
- }
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- {
- //toggle polys
- string $currentPanel = `getPanel -withFocus`;
- string $polyMeshVis = `modelEditor -q -polymeshes $currentPanel`;
- print $polyMeshVis;
- if ($polyMeshVis == 1)
- {
- modelEditor -e -polymeshes 0 $currentPanel;
- }
- if ($polyMeshVis == 0)
- {
- modelEditor -e -polymeshes 1 $currentPanel;
- }
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- {
- //toggle joints
- string $currentPanel = `getPanel -withFocus`;
- string $jointVis = `modelEditor -q -joints $currentPanel`;
- print $jointVis;
- if ($jointVis == 1)
- {
- modelEditor -e -joints 0 $currentPanel;
- }
- if ($jointVis == 0)
- {
- modelEditor -e -joints 1 $currentPanel;
- }
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
Add Comment
Please, Sign In to add comment