Message 1 of 4
Maya crash, docked WPF plugin stealing input and Python marshalling issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
My name is Jesper Gustin and I'm a Senior Software Engineer at Microsoft.
We have a plugin which uses the OpenMaya .NET interfaces to build a plugin UI in WPF together with a Python/MEL interface. We have multiple issues, see below.
1. The WPF plugin causes input hijacking issues (shortkeys stops working in the viewport) and the very same behavior can be seen when first docking (important, since this only happens after docking it) and interacting with the DAGExplorer example under devkit\dotnet\wpfexamples.
2. The other issue we are seeing is that Python commands that extends MPxCommand and IMPxCommand fails to forward the arguments to doIt() properly when running them through the Python interface exposed on the cmds object directly. I have attached a minimized test case which is basically copy/pasted from the documentation. Results when calling it in different ways:
* cmds.MayaCmdBug(test='myString') -> 0 elements in the MArgList (this is however the one that I expect to work, since this is the expected syntax)
* cmds.MayaCmdBug(test='myString') -> 0 elements in the MArgList (this is however the one that I expect to work, since this is the expected syntax)
* cmds.MayaCmdBug('test', 'myString') -> 2 elements in the MArgList
* mel.eval("MayaCmdBug -test \"myString\"") -> 2 elements in the MArgList
3. The third issue we are seeing is a crash when the short argument name string for the MPxCommandSyntaxFlag decorator is greater than 4 characters long (also in the attached minimized test case).