Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Maya 2018 Python API 1.0 Contexts are broken in Viewport 2.0

Maya 2018 Python API 1.0 Contexts are broken in Viewport 2.0

Anonymous
Not applicable
526 Views
1 Reply
Message 1 of 2

Maya 2018 Python API 1.0 Contexts are broken in Viewport 2.0

Anonymous
Not applicable

I'm looking into the "distant" possibility of us moving to Maya 2018 from Maya 2017 Update 3.

As part of the process I've started to test our Scripts and Scripted plugins.

 

It appears that the OpenMayaMPx.MPxSelectionContext accessed from Python API 1.0 to create contexts no longer works with Viewport 2!

It still works as expected with viewport 1.0 if the Environment Variable MAYA_ENABLE_LEGACY_VIEWPORT is set, but doesn't at all with viewport 2.0. The overriding methods for "doPress" etc simply don't get called.

 

This is a huge issue for us as many of our tools revolve around Python API 1.0 Contexts. I'm guessing this is one of the reasons that the DevKit hasn't yet been released for Maya 2018.

 

I've attached the example moveTool context from the Maya 2017 Devkit to show the issue in effect.

 

Can any Autodesk Employee give any feedback on this very worrying bug/issue?

0 Likes
527 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

FYI This is still broken in Maya 2018 Update 1

0 Likes