This script enables you to use PySide or PyQt4 with Houdini. Main differences from default pyqt_houdini.py are:
-
opportunity to have several widgets open at the same time
-
automaticly apply Houdini-style ui design
-
implemented 3 different modes. It is not required other functions , rather your widget inherits from one of following classes :
- widget: a simple window opening . Works if the widget is created from QWidget or QMainWindow. Main function showUi returns a pointer to widget object.
- dialog: opens the window blocks Houdinis window. To do this you need to create a widget that inherits from QDialog. showUi returns result of the dialogue (bool) and a pointer to the dialogue object.
- menu: If the widget is inherited from QMenu, the menu will open at the current cursor position . showUi returns a pointer to the selected QAction
This script help you to open PySide Widgets in Houdini 14 and 15 as PythonPanel
- Open widget as child of main Houdini Window
- Insert your widget as Houdini Python Panel without .pypanel file
- Fix default Houdini stylesheet examples
-
Install PySide or PyQt4 to default Python library or to Houdini python library (for Houdini 13 only)
-
Copy hqt.py to PYTHONPATH or PATH. For example:
$HFS/python27/lib/site-packages/hqt.py or $HFS/houdini/python2.7libs/hqt.py
- Execute code:
import hqt
help(hqt)
See hqt_example.py for details.
-
Support Houdini 15
-
Some stylesheet fix
-
Update help in show function