Easiest way would probably be to use QT designer and link the commands to mel commands. http://www.creativecrash.com/tutorials/using-qt-designer-for-mel-interfaces/page1 http://www.creativecrash.com/tutorials/maya-mel-qt-and-you-interfacing-with-the-qt-designer
@jimpaw: Windows aren't that bad in mel. I just recommended QT as you wanted to map a mel command to a button which in QT is pretty easy. Also if you use 2011, QT comes installed with the maya installation. Believe its in ProgramFiles/Autodesk/Maya2012/bin and look for designer.exe Saves the installation.
command for center pivot is CenterPivot; need to turn on echo all commands to see it. The way I know QT works for mel is that it looks within the functions created in the script as mel but you might be able to link stuff if you know the path. Sorry I didnt reply to your message, been busy at work.
Well since i cant even write Mel i cant write Python yet. But the questions is do i have to learn python to do this ? The dream whould be if you guys just could make a couple of buttons in a window and show me what line to copy to get more buttons,what buttons to paste in my mel code and so on. This may be more than…
Hey guys, I have recently started to work some in Maya again and this time i have decided to really get into scripting. The problem is that work take so much time that i dont have time to learn mel. Does anyone here on Polycount have time for a small script ? A even better solution whould be if someone knows/can create a…
Thanks alot man !! , awsome. It ask for .crt file when i try to load png icons as resources, how do i get my icons to become that ? Ohh never mind i solved it, you rock man ! , you have any idea what the mel code is for center pivot to selected object ?
+1 Qt is a dream to work with and does a massive amount of the work for you. if your learning python in maya i would go straight to 'pymel', reason being is that the Autodesk wrapper is a bit crap, it forces you to write python like you would mel.. which is pretty dumb. http://code.google.com/p/pymel/ it should also be…