Message 1 of 3
Using PySide in 3ds Max 2017 - MaxPlus.GetQMaxWindow issue?

Not applicable
08-07-2016
11:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Having a weird issue with MaxPlus, simply getting the main max window.. doesn't seem to be working.
From the docs, this method: QtGui.QWidget(MaxPlus.GetQMaxWindow()) is the way to get the qmainwindow in a qwidget..
the problem is that MaxPlus.GetQMaxWindow() returns nothing, and whenever i put it into a variable, or within a qwidget, or even check if its valid with PySide.shiboken, it always returns no value, not even None.
The error i get when trying to run it within a gui, is Unknown exception thrown executing script and nothing else.
Can anyone shed some light on this?
thanks in advanced.
-Dan