Title Image

Maya Python API

Level:
Intermediate
Software:
Maya (2017+)
Language:
Python
Duration:
2 hours 7 minutes
Instructor:
Chris Zurbrigg

Become a Patron!

Overview

A comprehensive ongoing series for anyone who would like to learn how to extend Maya's functionality by leveraging the Maya Python API 2.0.
* This is a Patreon series. Project files and videos marked with a Patreon logo are Total Access exclusives.

Videos

14 Videos (2 hours 7 minutes)

00 - Introduction

A very high level overview of the Maya API and what viewers can expect from this series.

01 - What is the Maya API

Before diving into Maya API examples, it is important to first understand what the Maya API is, what functionality if offers beyond that of scripting with Maya Commands and what the trade-offs are.

02 - Maya API vs Maya Commands

A look at the advantages and disadvantages of using the Maya API and when it is most beneficial to use it.

03 - C++ vs Python

A short discussion on the pros and cons of using Python, as opposed to C++, to leverage the Maya API.

04 - Maya Python API 2.0

The latest version of the Python API, which improves performance and simplifies many operations, but does have some caveats.

05 - Undo and Redo

When using the Maya API, it is the developer's responsibility to implement the undo and redo functionality. A failure to correctly implement undo/redo operations can corrupt the undo stack and break the scene (as demonstrated in this lesson).

06 - Maya Plugin Basics

A brief look at how plug-ins differ from scripts, the different methods for loading and unload plug-ins and what information can be obtained from Maya’s Plug-in Manager.

07 - Maya Plugin Template

A detailed look at the minimum code required to create plugins for Maya using the Maya Python API 2.0. This template will become the foundation for most of the examples in this series.

08 - HelloWorld Command

A short example that extends Maya by creating and registering a new HelloWorld command.

09 - HelloWorld Node (Part 1)

Building on the previous lesson, and to further reinforce the basics of plugin creation, the HelloWorld node example creates a new node that displays a text overlay in a VP 2.0 viewport.

10 - HelloWorld Node (Part 2)

To finish up the HelloWorld node example, a draw override is added to the plugin that allows custom draw code to be added to the node.

11 - Documentation and DevKit

An introduction to the official Maya API documentation and the samples provided by Maya's DevKit.

12 - Maya API Basics (Part 1)

To effectively utilize the Maya API, it is important to have a firm understanding of the different types of classes that are available in the API and how they can be used to interact with Maya.

13 - Maya API Basics (Part 2)

A detailed example to reinforce the idea of function sets and how they are used to access MObject data.

Additional Videos Coming Soon...