Hi, i found a bug inside Py3dsMax, when i hide a Dialog/Window or Max Window the Dialog disapears and I can’t call it back as if it had been closed.
Here is an exemple of a code wich gives me problems:
class window(blurdev.gui.Window):
def init( self, parent = None ):
super(window, self).init(parent)
self.setWindowTitle(‘Windowtest’)
win = window()
win.show()
Could you please help me solving this problem ?
Hi, i found a bug inside Py3dsMax, when i hide a Dialog/Window or Max Window the Dialog disapears and I can’t call it back as if it had been closed.
Here is an exemple of a code wich gives me problems:
class window(blurdev.gui.Window):
def init( self, parent = None ):
super(window, self).init(parent)
self.setWindowTitle(‘Windowtest’)
win = window()
win.show()
Could you please help me solving this problem ?
Same problem as col-one. The dialog disappears when 3ds Max is minimized.
This is some sample code from the blur help pages ( http://code.google.com/p/blur-dev/wiki/PyQt ):
from blurdev.gui import Dialog
class HelloWorldDialog(Dialog):
def __init__( self, parent = None ):
Dialog.__init__( self, parent )
self.setWindowTitle('Hello, World')
import blurdev
blurdev.launch(HelloWorldDialog)
How do I prevent the dialog from disappearing? Please anyone…
What is the current state of python in 3ds max?
judging form this thread and others it looks like interest has waned , and blur has stopped supporting py3dsmax for more recent version of max.
Is anyone using python in 3dsmax 2013 or 2014?
Or has python died in 3dsmax?
http://labs.autodesk.com/utilities/sciviz
Project Sci-Viz provides a Python engine and API for 3ds Max that enable Max users to run ePMV and autoPack from within 3ds Max 2013. The Sci-Viz plug-in is available only for 3ds Max 2013 64-bit and requires a 64-bit version of Python 2.6.6.
Hi there !
For reply to my post and solve the probleme about disapear qt window, we found the solution.
After spent lot of time to read the already existing blur script, we found something:
We must use our own migrate Qt max window, for do this we need import QtWinMigrate from classic PyQt and GetWindowHandle from Py3dsMax. Here an example:
from PyQt4 import QtGui, QtCore, QtWinMigrate
from Py3dsMax import GetWindowHandle
class window(QtGui.QMainWindow):
def __init__ (self, parent= QtWinMigrate.QWinWidget(GetWindowHandle())):
super(window, self).__init__(parent)
self.setWindowIcon(QtGui.QIcon(iconPath))
self.setWindowTitle( 'maxWindow' )
class testWin(window):
def __init__(self, parent = None):
super(testWin, self).__init__(parent)
self.setWindowTitle('testQtmaxWindow')
win = testWin()
win.show()
thanks for your post col-one, it is working for me. However there are other solutions, which confuse me. It seems that simply adding this:
self.setAttribute(QtCore.Qt.WA_DeleteOnClose, False)
somewhere in the constructor of my Dialog/Window/Whatever prevents it from disappearing when 3ds Max is minimized. I found this comment in the treegruntdialog.py that states the same:
# protect the memory
from PyQt4.QtCore import Qt
inst.setAttribute(Qt.WA_DeleteOnClose, False)
Can anyone try and verify?
I’ve compiled PyZmq and P4Python for Max and Maya 2015.
You can get them here: https://github.com/arturleao/YCDIVFX_MaxPlus in the Externals folder.
hi am new for python and its integration into max
am just trying to deal with
I started with binding sip for max and installing PYQT
but its seam that am doing something wrong because i get a fetal error massage in my command prompt
so i want to ask
- do s i have to change the python version from 2.7 to 3 ?
- dos it effect the max bridge if i installed other version of the python on same machine ?
- installing the pyqt must be in the max python folder or into the main folder (( C:\python27 for example)) ?
thanks in advance