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…
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…