wdas / partio

C++ (with python bindings) library for easily reading/writing/manipulating common animation particle formats such as PDB, BGEO, PTC. https://wdas.github.io/partio
https://www.disneyanimation.com/open-source/partio/
Other
458 stars 133 forks source link

PyQt5 support for partinspect and partedit #89

Closed danfe closed 3 years ago

danfe commented 3 years ago

There are two Python scripts, partinspect and partedit, which are not PyQt5-ready when used verbatim. Simply changing from Qt to from PyQt5 in the import section allows me to run partinspect. For partedit however it's not enough, it then complains about from minibar.gui import mbWidgetStyling and I'm not sure what to do about this.

davvid commented 3 years ago

Qt.py is https://github.com/mottosso/Qt.py which can avoid having to touch those parts (it allows for portability between PyQt4/5 and PySide2).

Sorry about the minibar imports -- for that what we'd probably want to do is have it catch ImportError and disable that functionality when those modules aren't available.