Hi all I'm working on a group project where we need to create a tool using python in Maya 2012. We've decided to create a tool that creates a polyCube based on several input fields (name, height, width, depth) and which features an "export" button that can be used instead of having to click on the "file" dropdown menu.…
Do you need to create a user interface in Maya or is the user providing inputs? Just as a side question. Creating a script like this in Maya is pretty simple. You want to create a polycube so lets look at the documentation for a cube. http://download.autodesk.com/us/maya/2011help/CommandsPython/polyCube.html So if you have…
Whoops, I should have specified... We've already got the part of the script that creates the cube running. We've got a button on our GUI that is labelled "Export" and we need that button, when pressed, to open up the "export selection..." dialogue box. That's what we're currently trying to figure out. But thanks all the…
Ah what you're looking for is fileBrowserDialog. Documentation says that you the command is deprecated but works anyway. Havent tried fileDialog2 but I know fileBrowserDialog should do the trick. Did some looking into fileDialog2 and pretty simple. filename = cmds.fileDialog2(fileMode=0, caption="Save As") and filename…