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

Creating a Maya Python plugin

Our tour of the Maya Python API continues with probably its most common use in the wild: creating a Maya plugin with Python. In fact, the entirety of the next chapter is spent working with Maya Python plugins in novel ways. We should have a good understanding of how plugins work before ending our API tour, so the remainder of this chapter will be focused on creating a Maya command plugin with Python. When called, the command will play a sound.

There are several plugin types supported by Maya. Plugin types are denoted by the MPx prefix and are inside the maya.OpenMayaMPx namespace. You can look at the Maya API Reference to get an idea of what's available. All plugins work with basically the same concepts, which we will ...

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