Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

leocov-dev/maya-python-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leo's Maya Python Demos

tested_maya_2016 tested_maya_2018 license

Description

This is a collection of Python tool examples for Maya to share with people looking to learn Python and PySide. I'll grow this collection as I have time and inspiration.

  • qthread_demo
    • This demo shows how to use a QThread to process some operations without blocking Maya's main thread while still updating your UI.

Installation and Use

  1. Place the entire directory for the demo you want to run in your Maya scripts directory or a directory that Maya can load Python scripts from.

    ├- maya
       ├- scripts
          ├- qthread_demo
             ├- __init__.py          
             ├- interface.py
             ├- etc . . .
    
  2. Restart Maya.

  3. Launch any tool with the load() method from it's interface.py file:

    # EXAMPLE
    # Python
    import qthread_demo.interface as interface
    interface.load()
Notes

These tools uses the Qt.py shim to enable compatibility with PySide or PySide2.

I can only test on Windows 10 at the moment. I won't be able to reproduce any issues running on another platform.

Releases

No releases published

Packages

No packages published

Languages