Integrating the tool GUI with Maya

It's finally time to hook together Maya and the hierarchy converter tool GUI. This will consist of a few steps. First, we need to get the GUI to simply appear and behave properly with the Maya window. Then, we must get Maya to emit the selectionChanged signal on the controller when Maya's selection changes. Finally, we hook up Maya to respond to the convertClicked signal on our GUI and perform the actual hierarchy conversion.

Opening the tool GUI from Maya

In this section, we will set up our GUI to open from a Maya shelf button. Let's start by creating a new Python file which will hold the Maya-specific code which will glue Maya to the controller. Go ahead and create a hierarchyconvertermaya.py file in your development ...

Get Practical Maya Programming with Python now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.