So I feel dumb for forgetting most of the MEL scripting I learned in school when I want to do something as simple as creating a hotkey that can toggle between two commands. I basiclly want to be able to toggle between the mesh smooth effect in Maya on and off. So thats the low quality mode and high quality mode. Seems like…
ah thanks, now i can have it toggled on the tab key like i have in modo and voidworld. Edit: crap NVM cant bind tab to anything in maya, anyone know a way around that.
string $sel[] =`ls -sl`; for ($thisObj in $sel){ int $displaylevel[] = `displaySmoothness -query -polygonObject $thisObj`; if ($displaylevel[0] == 1) { //Go to 3 displaySmoothness -polygonObject 3; } if ($displaylevel[0] == 3) { //Go to 1 displaySmoothness -polygonObject 1; } } Should work hopefully haha. Should be able to…