Pages

Thursday, January 15, 2015

Toggle wireframe Maya MEL script

Hi,
I wrote this today because i was finding i often made like 3 or so clicks to show or hide wireframe during deformation making. With this hotkey it makes it much faster. Hope you find it helpful.

//toggle wireframe active panel
string $window = `getPanel -withFocus`;//example modelPanel1
if( `modelEditor -q -wos $window` == 0 ){
modelEditor -e -wos 1 $window;
}
else{
modelEditor -e -wos 0 $window;
}

cheers,
Nate