![]() ![]() ![]() I made some edits to this in a different script, where I added self to the controls to be able to access controls and to setup the connections in a different function and it works pretty well. There is quite a lot of ambiguity in the max docs, always has been, but hope it helps. Here is a simple ui that I found on Autodesks forum page: Self.testBtn = QtWidgets.QPushButton("Test") Here's an example for testing: from PySide2 import QtWidgets, QtCore, QtGuiÄef _init_(self, parent=MaxPlus.GetQMaxMainWindow()): I even tried running the example scripts that ship with Max and got the same error, so I realize this is probably a bug of some sort however I have no faith in Autodesk fixing it right now so I'm looking for a workaround. I tried printing out keypresses and it looks like control, alt and shift work though. They are being registered by Max instead, which does the appropriate things like launching the material editor when I press 'm' instead of typing an 'm'. It just doesn't seem to read the keystrokes for some reason. I am writing a UI in python for 3DS Max 2018 and I cannot get any text input to work, though everything else I have tried so far works fine. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |