--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/de8e4f24-270e-44ee-a369-4a383493b8a1n%40googlegroups.com.
Hi Justin, I had already read this but I want to do it directly in Maya not using external console. I want to do it that way because I'm still going back and forth between the code in Maya and Qt Designer. So I want to be able to reload the converted .py all the time.Thanks
--On Tuesday, June 4, 2024 at 12:55:42 AM UTC+2 Justin Israel wrote:On Tue, Jun 4, 2024 at 8:11 AM Pacifique Nzitonda <nzitonda...@gmail.com> wrote:Hi all, in Maya 2020 I used to import pyside2uic and convert .ui to .pyHow do we do it in Maya 2024?ThanksDoes this link help?--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/de8e4f24-270e-44ee-a369-4a383493b8a1n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/db77d1c5-af33-4e56-9d4a-d3c3aa90b686n%40googlegroups.com.
Oh sorry! What I didn't mention is that I want to get autocompletion but the QUiLoader() doesn't provide it.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/aa85e260-65d7-4f94-93ce-14d5df380fedn%40googlegroups.com.
I'm sorry maybe I didn't explain well the issue.What I'm looking for is a way to do something like this in Maya 2024 Script Editor:
https://codefile.io/f/gJMC306hSLI'm learning stuff about qt that's why It would be easier if I could convert the .ui to .py each time I run my script inside Maya 2024
from PySide2.QtUiTools import QUiLoader
from PySide2.QtCore import QFile, QIODevice
def load(ui_file_name):
ui_file = QFile(ui_file_name)
if not ui_file.open(QIODevice.ReadOnly):
print("Cannot open {}: {}".format(ui_file_name, ui_file.errorString()))
return
loader = QUiLoader()
window = loader.load(ui_file)
ui_file.close()
return window
win = load("test.ui")
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/cbe153cd-899d-42a7-949c-4d08b8e1e044n%40googlegroups.com.
Thanks a lot, it is all good now.Oh by the way, thank you also for the "Python for VFX" Vol 2 (Python for Maya Artist). Produced by CMI STUDIOS.That helped me so much when I started learning python.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/ef72a753-c215-4195-bfd5-8dd580db1916n%40googlegroups.com.