Skip to content

Instantly share code, notes, and snippets.

@lapaev
Created February 7, 2015 22:12
Show Gist options
  • Select an option

  • Save lapaev/6ed096832bb52c42ac63 to your computer and use it in GitHub Desktop.

Select an option

Save lapaev/6ed096832bb52c42ac63 to your computer and use it in GitHub Desktop.
Toggle Curves in maya viewports
global proc toggleCurveser(){
for ($x in `getPanel -type modelPanel`){
int $curvesval = !`modelEditor -q -nurbsCurves modelPanel4`;
modelEditor -e -nurbsCurves $curvesval $x;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment