What's new in the Maya 2023.2 devkit

{{toc}}

Two new classes

Two new classes, MDisplayLayerMessage and MFnDisplayLayer, have been added to the Maya devkit. These two classes help communicate what has changed in a display layer.

MDisplayLayerMessage registers callbacks for display layer membership changes. MFnDisplayLayer is the function set for querying the contents of a display layer.

New method added to MUIDrawManager

A new method, setOverrideBlendState() has been added to MHWRender::MUIDrawManager.

void setOverrideBlendState (const MHWRender::MTargetBlendDesc &blendStateDesc)

setOverrideBlendState() lets you specify a new blend state to override the default blend state of the UI painter. The new blend state can be any configuration that can be set with an MTargetBlendDesc, including premultiplied alpha blending.

The overriding blend state applies to any mesh-like UI objects drawn through the draw manager, such as a mesh, line, point, circle, or sphere. It does not apply to text or icon UI objects.

Back to top

Two new methods added to MRenderItem

Two new methods, setDrawLast() and isDrawLast(), have been added to MRenderItem.

void MRenderItem::setDrawLast(bool state)

bool MRenderItem::isDrawLast()

Passing true to setDrawLast() indicates that the render item should be drawn after all other objects in the scene.

isDrawLast() returns true if the item will be drawn last in the scene. It returns false otherwise.

Back to top

Scripting changes

The about command's -ltVersion option has been deprecated and has been updated to -creativeVersion. If about -creativeVersion is called from within Maya, it will return 0. If about -creativeVersion is called from within Maya Creative, it will return 1.

These additional scripting changes were also made in 2023.2:

Back to top