oh dear, i just did some first mel scripting tests and they turned out well. really nothing special, but i wanted to optimize my workflow of turning on/ off the backface culling for polygons a bit since this command is deeply nested in the display menu (display > polygons > custom display > backface culling: on/ off). this option is really helpful for me to turn on and off every now and then, so i tried to set up a little script, well 2 in fact:
//display with no back culling.
//(makes back facing edges/faces selectable)
polyOptions -backCulling -gl;
//display with full back culling.
//prevents you from accidentally selecting back facing edges/faces)
polyOptions -fullBack -gl;
both snippets i typed into the mel editor and dragn & dropped them into my personal shelf. later on i’ll optimize this for sure. i’m just happy with it now even when i can’t impress anyone
.
Pingback: on/off / hot keys for maya