Basic Tools with Maya Commands
Tool GUI Template, Polygon Primitives tool, Pose Manager tool
This chapter introduces the basics of creating a Maya GUI window. Readers will use the cmds module to create a base window class with a menu and buttons that they can extend for their own tools. We introduce additional GUI commands available in the cmds module to extend this base class and implement radio buttons, input fields, and color pickers in a simple polygon creation tool. Finally, we cover some advanced techniques for tool development including code organization, data serialization with the pickle module, and working with files in a Maya GUI. The final code example is a basic tool that can copy, paste, save, and load poses on characters.
Errata for the First Edition
In the optwin.py module (AR_OptionsWindow class), the call to tabLayout should have set the childResizable flag. The file available for download reflects this change.