Title Image

Maya Python API (Vol. 3)

Maya (2018+)
4 hours 9 minutes
Chris Zurbrigg

Become a Patron!


A continuation of the Maya Python API series that further explores Maya's API through a combination of theory and practical examples.

Streaming: This course is available to Total Access subscribers on Patreon

Download: This course is available for purchase on Gumroad

Course Outline

26 Videos (4 hours 9 minutes)

00 - Introduction

A high level overview of what is upcoming in the third volume of the Maya Python API series.

01 - Locators (Part 1)

An overview of custom locator nodes -- what they are, how to create them using Maya’s Python API and additional VP 2.0 requirements.

02 - Locators (Part 2)

A simple locator node example that covers, in detail, each of the steps required to create a custom locator node.

03 - Locators (Part 3)

The implementation of a custom draw override class -- required to draw the simple locator node in a VP 2.0 viewport.

04 - Locators (Part 4)

A walkthrough of the remaining steps required to associate the custom draw override with the simple locator node.

05 - Locators (Part 5)

A look at how a locator's attribute data is accessed in the draw override class and safely passed to the draw method using an MUserData object.

06 - Locators (Part 6)

Color is often used as a visual clue to the user as to a locator's state (selected, templated, etc...) and, in this lesson, that functionality is added to the SimpleLocatorNode.

07 - Custom Node Icons

A quick look at the steps required to display custom node icons in the Outliner and Node Editor.

08 - Distance Between Locator (Part 1)

A practical locator example that calculates and displays the distance between two objects in 3d space.

09 - Distance Between Locator (Part 2)

Focusing on the locator node class, the required attributes are added and the compute method is implemented.

10 - Distance Between Locator (Part 3)

With the distance between logic implemented, the display override class can be updated to present this information in the viewport.

11 - Distance Between Locator (Part 4)

To improve the end user experience, the distance displayed in the viewport is moved into 3d space, positioned between the two inputs.

12 - Ramp Attributes (Part 1)

A detailed look at adding color and curve ramp attributes to custom nodes in Maya.

13 - Ramp Attributes (Part 2)

In this lesson, a color ramp attribute is added to the Distance Between node that links the display color to distance.

14 - Ramp Attributes (Part 3)

Continuing on from the previous lesson, default entries are added to the color ramp providing a reasonable starting point for the end user.

15 - Ramp Attributes (Part 4)

An introduction to AE templates and how they can be used to change the appearance of color ramp attributes in Attribute Editor.

16 - Ramp Attributes (Part 5)

A look at the curve ramp attribute and how it differs from a color ramp.

17 - Combining Plugins

A detailed look a combining two or more components (custom nodes, commands, contexts, etc...) into a single plugin.

18 - MDGModifier (Part 1)

An introduction to the MDGModifier class -- what it is and how it is used to modify the structure of the dependency graph.

19 - MDGModifier (Part 2)

A custom command example that uses an MDGModifer to create nodes and make connections with full undo and redo support.

20 - MDGModifier (Part 3)

Building on the previous example, some additional functionality of the MDGModifier class is demonstrated.

21 - Multi-File Plugins (Part 1)

An in-depth look at how Python plugins can be split up into multiple files and why this is beneficial for both development and maintenance.

22 - Multi-File Plugins (Part 2)

In addition to the benefits provided by multi-file Python plugins, there are some caveats that developers should be aware of.

23 - Maya Modules (Part 1)

An overview of plugin distribution -- how to share your tools with other users as complexity increases.

24 - Maya Modules (Part 2)

A detailed walkthrough of the steps required to set up a module in Maya and the corresponding module description file.

25 - Maya Modules (Part 3)

Several additional module description file examples to illustrate some advanced concepts associated with Maya Modules.

Related Courses