更新时间:2021-07-14 10:46:58
封面
版权页
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Conventions
Reader feedback
Customer support
Chapter 1. Getting Started with Maya
Introduction
Using the script editor to investigate functionality
Running code from the script editor
Importing Maya's built-in Python functionality
Accessing documentation for a specific command
Understanding Create Query and Edit flags
Adding custom folders to your script path
Writing and running an external script
Calling a MEL script with Python
Chapter 2. Creating User Interfaces
Making a basic window
Simple controls – making a button
Retrieving input from controls
Using classes to organize UI logic
Using nested layouts
Using tabs and scrolling
Adding menus to your UIs
Chapter 3. Working with Geometry
Working with selected objects and checking node type
Accessing geometric data in polygonal models
Accessing geometric data in NURBS objects
Creating curves
Creating new polygonal faces
Creating new modifiers (noise)
Creating novel primitives (tetrahedron)
Chapter 4. Giving Things a Coat of Paint – UVs and Materials
Querying UV data
Laying out UVs with Python
Creating shading networks with code
Applying shaders to objects
Using shading nodes for non-shading tasks
Chapter 5. Adding Controls – Scripting for Rigging
Creating skeletons with script
Setting up set-driven key relationships with script
Adding custom attributes and locking and hiding attributes
Setting up inverse kinematics (IK) with script
Chapter 6. Making Things Move – Scripting for Animation
Querying animation data
Working with animation layers
Copying animation from one object to another
Setting keyframes
Creating expressions via script
Chapter 7. Scripting for Rendering
Creating and editing lights
Creating GUI to control all lights
Creating cameras from code
Rendering a sprite sheet
Chapter 8. Working with File Input/Output
Using the fileDialog2 command to navigate the file system
Reading text files
Writing text files
Writing binary data
Reading binary data
Reading multiple types of files
Chapter 9. Communicating with the Web
Opening a web page from script
Grabbing data from a server
Working with XML data
Working with JSON data
Sending POST data to a web server from Maya
Chapter 10. Advanced Topics
Wrapping Python functionality in MEL
Creating custom tools using contexts
Using script jobs to trigger custom functionality
Using script nodes to embed code in scenes
Combining script jobs and script nodes
Index