Python QtCore module issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a local install of python (2.7) as well as the python that ships with Max.
Prior to PySide2, we used PyQt4 alongside an updated version of Blur python combined with in house communal server side libraries.
In the pursuit of updating our tools/scripts etc. and making use of Max Python (MaxPlus and pymxs) I noticed a difference in the PySide2 modules.
Outside of Max, in PySide2.QtCore, you find: QtCore.QStringListModel
In Max`s PySide2.QtCore, there is no QStringListModel, you have to access it through: QtGui.QStringListModel.
This causes a major issue with existing scripts as it ties us to using one or the other (we do not want to have a split system). Tools that only run in Max could be achieved, but we use Deadline, Shotgun and other applications that use PyQt PySide, PySide2, but really did not expect the PySide2 binaries/libraries/modules to be different. We can no longer rely on or trust the implementation if this is going to be a factor.
I really do not want to have to trawl through the different libraries to find the differences, nor do I wish to create a script system that has to check what should be a straightforward import of items we need when writing code.
Parts of our script call from outside of Max, so it is a little cumbersome and I dont know why Autodesk have chosen to use/create a library that is different to what exists elsewhere. Perhaps this is not even the only difference, so how can we trust the implementation, especially considering that the docs are incomplete and there are serious issues with asset access and ability to create higher level objects and code?
If anyone can shed some light on this, I would appreciate it as we really want to be able to use Max Python in our work, but not at the cost of doubling up on things that should be standardised and especially when the implementation is incomplete.
