Hey guys, So i want this piece of code to work within my ui that i have created but i just cant get it to work. This works on its own.. import maya.cmds as cmdsfaceSel = cmds.ls(sl=True)cmds.polyProjection( faceSel, type='Planar', md='x' ) As you can see i have had a crack at it but of course it doesnt work. faceSel =…
Ah i forgot to mention that this is my ui i am playing with: import maya.cmds as cmdsmyWindow = cmds.window ( title="Ben Cottage Modelling Script - ALPHA", toolbox=2, widthHeight=(218, 800) )if (cmds.window("myWindows", exists=True)):cmds.deleteUI("myWindows")scrollLayout = cmds.scrollLayout(…
Hey Ben, I had a look at your script. Your check to see if the UI existed in order to delete it didn't work properly. I fixed it for you. I added a function to make sure that only one checkbox can be checked at any one time by adding a 'onCommand'(onc) to the checkboxes. Also added a function for the Planar button which…