Due to a miscommunication between Elsevier Press and the Python Software Foundation, the first printing of this title used an unauthorized modification of the trademarked Python logo. We apologize to the PSF for this, and they have been understanding of our in-press status; in the 2nd and subsequent printing of this title, we shall use a cover design that has been approved as non-dilutive by the Python Software Foundation.

Help make the world a better place and make a secure donation to the Python Software Foundation today!

 

Chapter 1

The Maya Command Engine and User Interface

Author

Ryan Trowbridge

Project

Input simple commands using the Script Editor

Example Files

None

Synopsis

This chapter briefly describes the basic low-level structure of Maya by focusing on its Command Engine. Following this description, we examine Maya’s different programming interfaces and the tasks for which each is best suited. We then introduce the different tools in the Maya GUI for programming with Python. Finally, we demonstrate some basic commands and indicate where readers can find more information about Maya commands and the Python language.

Resources

Python Documentation
Maya Python Command Documentation

Other Notes

The string examples listed on p. 20 in the body may be confusing since they do not appear in the code type face. Specifically, all of the examples using triple quotation marks are intended to be read as three pairs of double quotation marks, rather than six pairs of single quotation marks. Refer to Table 1.1 for clarification.

Errata for the First Edition

None


5 Responses to “Chapter 1”

  1. Hey Ryan,

    I’m currently working through the first chapter but ran into a minor problem: When trying to execute this code:

    maya.cmds.polyCube(‘pCube1’, query=True, width=True);

    I don’t get any results. I do have pCube1 in my scene and it doesn’t give me any errors either. Am I doing something wrong or is there a specific setting in Maya I need to set?

    Thanks ahead and really enjoying the book so far!
    Frieder

  2. Hello,
    I was following chapter 1. when input maya.cmds.polysphere(); a error pop up saying “Error: AttributeError: ‘module’ object has no attribute ‘polysphere’ #” Can you guys help me out here? much appreciated.

  3. nvm…S needs to be capitalized. Sorry about that~

Leave a Reply

Your email address will not be published. Required fields are marked *