Book Image

Practical Maya Programming with Python

By : Robert Galanakis
Book Image

Practical Maya Programming with Python

By: Robert Galanakis

Overview of this book

Table of Contents (17 chapters)
Practical Maya Programming with Python
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we learned how Maya and Python work together to create PyMEL. First we learned how to use the mayapy interpreter, and how to create and use Python libraries and modules. Then we explored PyMEL via introspection: how it mirrors Maya concepts such as DAG nodes and attributes, how every Maya object is represented as a first-class PyMEL node, and PyMEL's special math data types. Finally, we built a function that can bring us to the PyMEL online help when we want more information about a PyMEL node. Along the way, we learned about concepts central to Python, such as types, the standard library, magic methods, a definition of the term Pythonic, and easier to ask for forgiveness than permission versus look before you leap.

In the next chapter, we will learn more about writing practical Maya Python with PyMEL by investigating the important concept of composability.