Guest User

Untitled

a guest
Jul 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. //toggle all
  2. {
  3. string $currentPanel = `getPanel -withFocus`;
  4. int $toggleMe3;
  5. if($toggleMe3 == 0)
  6. {
  7. modelEditor -e -allObjects 1 $currentPanel;
  8. $toggleMe3 = 1;
  9. }
  10. else
  11. {
  12. modelEditor -e -allObjects 0 $currentPanel;
  13. $toggleMe3 = 0;
  14. }
  15.  
  16.  
  17. }
  18.  
  19.  
  20. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  21. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  22. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  23.  
  24.  
  25.  
  26. //toggle nurbs curves
  27. {
  28. string $currentPanel = `getPanel -withFocus`;
  29. string $nurbsCurveVis = `modelEditor -q -nurbsCurves $currentPanel`;
  30. print $nurbsCurveVis;
  31. if ($nurbsCurveVis == 1)
  32. {
  33. modelEditor -e -nurbsCurves 0 $currentPanel;
  34. }
  35. if ($nurbsCurveVis == 0)
  36. {
  37. modelEditor -e -nurbsCurves 1 $currentPanel;
  38. }
  39. }
  40.  
  41.  
  42.  
  43. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  44. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  45. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  46.  
  47.  
  48.  
  49. {
  50. //toggle polys
  51. string $currentPanel = `getPanel -withFocus`;
  52. string $polyMeshVis = `modelEditor -q -polymeshes $currentPanel`;
  53. print $polyMeshVis;
  54. if ($polyMeshVis == 1)
  55. {
  56. modelEditor -e -polymeshes 0 $currentPanel;
  57. }
  58. if ($polyMeshVis == 0)
  59. {
  60. modelEditor -e -polymeshes 1 $currentPanel;
  61. }
  62. }
  63.  
  64.  
  65.  
  66.  
  67. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  68. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  69. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  70.  
  71.  
  72.  
  73.  
  74.  
  75. {
  76. //toggle joints
  77. string $currentPanel = `getPanel -withFocus`;
  78. string $jointVis = `modelEditor -q -joints $currentPanel`;
  79. print $jointVis;
  80. if ($jointVis == 1)
  81. {
  82. modelEditor -e -joints 0 $currentPanel;
  83. }
  84. if ($jointVis == 0)
  85. {
  86. modelEditor -e -joints 1 $currentPanel;
  87. }
  88. }
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  98. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  99. /////////////////////////////////////////////////////////////////////////////////////////////////////////
Add Comment
Please, Sign In to add comment