O'Reilly logo

Practical Maya Programming with Python by Robert Galanakis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required