try this: * open maya * open the script editor * under the history menu check on "echo all commands" this will mean that everything you do will now show up in the script editor. You can then either copy or paste these commands into your script or look them up on the documentation.…
Another thing you can use to find out how commands work is the "whatIs" mel command. This will tell you if a proceedure is a script or a embedded command. http://download.autodesk.com/us/maya/2011help/Commands/whatIs.html in the case of 'showSG' it tells me that it's a script written by the maya developers - so you can…
Hi, I'm working on a script where I want to create a Button for "show material attribute" when we right click on the object. For eg. I have selected one sphere and when I click on that button it will automatically open its material property. I don't know Material attribute Command. Thanks in Advance