Message 1 of 2
PySide: maya.OpenMayaUI.MQtUtil.mainWindow() returning SwigPyObject

Not applicable
10-29-2013
04:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm using Maya 2014. Apparently you don't have to build anything to use PySide.
According to this:
You get the main window by using maya.OpenMayaUI.MQtUtil.mainWindow() then pass that result to shiboken.wrapInstance. mainWindow() returns a SwigPyObject that always causes an error when using shiboken.wrapInstance that says: Error: TypeError: You need a shiboken-based type.