PySide2 for Maya

Maya (2017+)
Chris Zurbrigg

Become a Patron!


PySide2 for Maya is an ongoing series for anyone interested in learning Qt and using PySide2 to create advanced user interfaces in Maya.
* This is a Patreon series. Project files and videos marked with a Patreon logo are Total Access exclusives.


00 - Introduction

The first video in this series provides a high level overview of Qt and PySide2. Additionally, it outlines the goals for the series and details the primary tools used in upcoming videos.

01 - Creating a Dialog

Get started with PySide2 in Maya by creating a simple dialog. Learn how to extend QDialog to create your own TestDialog class and parent it to Maya's main window.

02 - Adding Widgets

Building on the empty TestDialog class created in the previous lesson, this video illustrates how to add widgets (buttons, checkboxes, etc...) to a dialog.

03 - Layout Basics

To improve the look of of TestDialog, this video explores some of the different layouts available in Qt and demonstrates how to use them to create a visually appealing user interface.

04 - Deleting a Dialog

To help with the development process, and to avoid having multiple instances of a dialog visible at the same time, this video demonstrates one method for deleting an old dialog before creating a new one.

05 - Signals and Slots (Part 1)

It's time to make TestDialog interactive. Signals and slots allow for communication between two objects and this is one of the most powerful benefits of working with Qt.

06 - Documentation

Before diving deeper into Qt and PySide2, I take a moment to explore the online documentation and explain how I choose to use it.

07 - Signals and Slots (Part 2)

Learn how to make connections to signals that pass one or more argument and how to create slots for overloaded signals (signals with the same name but different parameters).

08 - Signals and Slots (Part 3)

Further expanding on signals and slots in Qt, learn how to create and emit your own signals in PySide2.

09 - Open Import Dialog (Part 1)

An introduction to the first mini-project in the series -- creating a tool to select Maya scene files and open, import or reference them into the current scene.

10 - Open Import Dialog (Part 2)

Starting with an empty template, create the UI for the dialog and make the required connections to stubbed slots (implemented in later videos).

11 - Open Import Dialog (Part 3)

Discover how to access the images (resources) available in Maya and how to use them, instead of text, on your buttons.

12 - Open Import Dialog (Part 4)

It's time to add some functionality by allowing a user to select a file using the QFileDialog widget and to toggle the Force checkbox visiblity using the radio buttons.

13 - Open Import Dialog (Part 5)

The final step in this mini-project is to add the code to open, import or reference a Maya scene file, based on the selected type.

14 - Pipeline Tips 01

Learn how to modify the previous example's code for release in a production environment or to the public. These changes allow PySide2 tools to be easily integrated into Maya's shelves and menus.