I know this is a crazy obscure question but I figure there are plenty super-clever "python-istas" who might be able to crack this nut.
There is a copy of "designer.exe" included with every version of PySide2 installed with every version of Python in Houdini.
What is the best way for executing designer.exe?
PySide2 Designer in Houdini
2833 5 1- ProfessorChris
- Member
- 16 posts
- Joined: 3月 2020
- Offline
- Jonathan de Blok
- Member
- 274 posts
- Joined: 7月 2013
- Offline
- ProfessorChris
- Member
- 16 posts
- Joined: 3月 2020
- Offline
Yes! Thank you for responding Jonathan!
I wish to execute Designer to generate a .ui file which I can use to drive an interface.
I typically use the the version installed with PyQt5. However, I am trying to answer the question, "If a user did not install PyQt5 or PySide2 separately on their machine, how could they use the version of Designer installed with Houdini Python?"
Thank you for your time!
I wish to execute Designer to generate a .ui file which I can use to drive an interface.
I typically use the the version installed with PyQt5. However, I am trying to answer the question, "If a user did not install PyQt5 or PySide2 separately on their machine, how could they use the version of Designer installed with Houdini Python?"
Thank you for your time!
- anon_user_95266836
- Member
- 64 posts
- Joined: 4月 2022
- Offline
- anon_user_95266836
- Member
- 64 posts
- Joined: 4月 2022
- Offline
import os from PySide2 import QtCore from PySide2.QtUiTools import QUiLoader def load_designer_widget(file_path): qui_loader = QUiLoader() qui_loader.setWorkingDirectory(os.path.dirname(file_path)) ui_file = QtCore.QFile(file_path) ui_file.open(QtCore.QFile.ReadOnly) widget = qui_loader.load(ui_file) widget.setWindowFlags(QtCore.Qt.Widget) return widget
I created this function to make it easier to import a designer file into Houdini
- ProfessorChris
- Member
- 16 posts
- Joined: 3月 2020
- Offline
-
- Quick Links