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

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 automatically tested so easily, should be simple enough to run by copying and pasting the code into the Script Editor and then executing it. To make examples more clear and concrete, many paths are hard-coded. You will need to change those paths to whatever is appropriate for your environment.

Few things annoy me more than code in technical books that does not work. If you find broken examples, they are probably due to an unfortunate copy and paste error from IDE to word processor, or some written instructions I did not test thoroughly enough. Also watch out for mixing tabs and spaces; Python code should be using four spaces for indentation, and never tabs. I sincerely apologize for any mistakes, and ask that you follow the instructions in the Preface for reporting problems, or create an issue in the GitHub repository.