Extension for Autodesk Maya 2015

Python API 2.0

Over 130 new classes have been added to the Python API 2.0, including MPxNode, MPxData and much of the Rendering API.

Over 15 devkit examples are also available, and can be found in the devkit\plug-ins\scripted directory of the Maya installation. All Python API 2.0 devkit examples are named with the prefix py.

For more information, see Maya Python API 2.0 Reference.

New Profiler classes

Two new classes, MProfiler and MProfilingScope, have been added that allow you to work with Maya's Profiler. The Profiler allows you to locate performance bottlenecks in your scene by recording and demonstrating in a graph the amount of time that each process consumes.

In Maya, select Window > General Editors > Profiler to open the Profiler window.

The MProfiler class provides functions such as:

For more information, see the MProfiler class documentation.

The MProfilingScope::MProfilingScope() method allows you to instrument the function that you want to profile.

To enable profiling, you can click Start in the Profiler window; or, use the MEL or Python profiler command.

For more information on the Profiler window, see Profiler in the Maya User's Guide. For more information on the profiler command, see the MEL Commands and Python Commands documentation.


Color management

The new MColorManagementUtilities class allows the caller to retrieve color management information from Maya. This class provides methods to query whether the color management feature is available (given proper user entitlement), whether color management is enabled in the scene, and to retrieve color transform IDs from color transform names.


The new MFragmentManager::removeFragment() function now allows you to change a fragment by removing and adding it again during Maya run-time. In addition, using this method, you can also replace Maya's default fragments with your own.

UI Draw Manager Enhancements

New PySide examples added

New PySide example scripts have been added to the devkit/pythonScripts folder that demonstrate the fundamental concepts for creating basic PySide scripts. In addition, the topic Working with PySide in Maya has been added that provides additional information to supplement the example scripts.

Devkit examples

The footPrintNode devkit example is now made simpler and demonstrates how to use MUIDrawManager to draw a simple locator in Viewport 2.0.

The original sample is now renamed to rawfootPrintNode which demonstrates how to draw the locator with raw OpenGL/DX calls.

Plug-in code using MUIDrawManager can be written once and used on all platforms and all draw API’s.