Maya Programming with Python Cookbook

Master complex workflows and conquer the world with Python and Maya

Maya Programming with Python Cookbook

Cookbook
Adrian Herbez

Master complex workflows and conquer the world with Python and Maya
$35.99
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to get that next promotion or to land that dream job. Cancel anytime.

Free Sample

Book Details

ISBN 139781785283987
Paperback266 pages

Book Description

Maya is a 3D graphics and animation software, used to develop interactive 3D applications and games with stupendous visual effects. The Maya Programming with Python Cookbook is all about creating fast, powerful automation systems with minimum coding using Maya Python. With the help of insightful and essential recipes, this book will help you improve your modelling skills. Expand your development options and overcome scripting problems encountered whilst developing code in Maya. Right from the beginning, get solutions to complex development concerns faced when implementing as parts of build.

Table of Contents

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
Introduction
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
Introduction
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
Introduction
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
Introduction
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
Introduction
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
Introduction
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
Introduction
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
Introduction
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
Introduction
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

What You Will Learn

  • Find out how to use Python scripting to automate tedious tasks
  • Create functional user interfaces to make scripts easy to share with others 
  • Add new functionality to Maya via the power of scripting
  • Import and export arbitrary data into and out of Maya
  • Improve your workflow, and that of your team
  • Create custom create custom controls to make rigs that are easy to work with
  • Implement a system to render 3D assets for isometric games
  • Use script jobs to trigger actions automatically in response to user interaction
  • Open a command port to allow other applications to communicate with Maya

Authors

Table of Contents

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
Introduction
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
Introduction
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
Introduction
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
Introduction
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
Introduction
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
Introduction
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
Introduction
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
Introduction
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
Introduction
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

Book Details

ISBN 139781785283987
Paperback266 pages
Read More

Read More Reviews