Using the GitHub repository for this book

All the code samples in this book are hosted in a GitHub repository at https://github.com/rgalanakis/practicalmayapython. There are folders for the code in each chapter and appendix. In many cases, there is some divergence between code in the book and the source code, usually done to avoid duplication or to remove clutter, but it should be easy to find the source code for the chapter samples.

In general, running a file through the mayapy interpreter should execute the code and/or tests in the file. Code entered at the interactive prompt is usually in the interactive.py file in the chapter's directory. Most functions that can be tested automatically have unit tests written. Code for GUIs, which cannot be ...

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.