2009

Table Of Contents
Creating dynamics with MEL commands . . . . . . . . . . . . . 621
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 623
Lesson 4: User interface creation and procedures . . . . . . . . . . . . 624
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624
Creating a window . . . . . . . . . . . . . . . . . . . . . . . . . 624
Window naming . . . . . . . . . . . . . . . . . . . . . . . . . . 627
Introduction to procedures . . . . . . . . . . . . . . . . . . . . 630
Loading a script file . . . . . . . . . . . . . . . . . . . . . . . . 631
Linking the user interface . . . . . . . . . . . . . . . . . . . . . 636
Saving the script . . . . . . . . . . . . . . . . . . . . . . . . . . 641
Using the saved script file . . . . . . . . . . . . . . . . . . . . . 642
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 643
Lesson 5: Using Python in Maya . . . . . . . . . . . . . . . . . . . . 644
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 644
Entering Python commands . . . . . . . . . . . . . . . . . . . . 645
Using flags in Python . . . . . . . . . . . . . . . . . . . . . . . 648
Using the edit flag in Python . . . . . . . . . . . . . . . . . . . 652
Communicating between Python and MEL . . . . . . . . . . . . 654
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 656
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
xiv | Contents