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

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

Anonymous
Not applicable
948 Views
2 Replies
Message 1 of 3

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

Anonymous
Not applicable

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

 

0 Likes
949 Views
2 Replies
Replies (2)
Message 2 of 3

DDelapenaZ28WA
Explorer
Explorer

To add to this, what is interesting is that the Personal version of 3ds Max i have at home, i have the above issue.. at work, i do not.
It's important to note, if i run import sys; print sys.argv, it returns [''], which i find very odd. This should return something.

On top of this, when i get random python errors within my tools... the error i get is 'Error occured executing user action' and no other information.. is there a 'show stack trace' check box somewhere?

0 Likes
Message 3 of 3

DDelapenaZ28WA
Explorer
Explorer

Just noticed, on a machine that it works on.. i'm on windws 7. On the machine it doesn't work, i'm on windows 10. Perhaps this is the problem? 

0 Likes