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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.