Skip to content

Commit

Permalink
hotfix for string/py3 compatibility for Maya previews
Browse files Browse the repository at this point in the history
  • Loading branch information
masqu3rad3 committed May 30, 2023
1 parent d8df5c1 commit 2626ebe
Show file tree
Hide file tree
Showing 7 changed files with 761 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Tik Manager Version History
* **Fix.003** Python 3.x support for imageViewer, project materials and asset library
* **Fix.004** Asset Library hotfix for Houdini / Max / Nuke
* **Fix.005** Hotfix for Maya 2024 / deprecated MQtUtil_mainWindow()
* **Fix.006** Hotfix for Maya 2022+ / string compatibility issue

3.1
---
Expand Down
3 changes: 2 additions & 1 deletion tik_manager/SmMaya.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
# -----------------------------------------------------------------------------

import os
import six
os.environ["FORCE_QT5"]="0"

# DELETE
Expand Down Expand Up @@ -537,7 +538,7 @@ def tearOffPanel(self, panel=None, camera=None, resolution=[1280, 720], override
value = overrideDict[key]
else:
value = item[1]
if type(value) == unicode or type(value) == str:
if isinstance(value, six.string_types):
eval ("cmds.modelEditor(pbPanel, e=True, %s='%s')" % (key, value))
else:
eval ("cmds.modelEditor(pbPanel, e=True, %s=%s)" % (key, value))
Expand Down
2 changes: 1 addition & 1 deletion tik_manager/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.2.005"
__version__ = "3.2.006"
2 changes: 1 addition & 1 deletion tik_manager/innoSetup/tikManager_aSetup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!

#define appName "Tik Manager"
#define appVersion "3.2.005"
#define appVersion "3.2.006"

[Setup]
AppName={#appName}
Expand Down
Binary file modified tik_manager/setup.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def main(argv):
utility.innoSetupCompile()
utility.prepareLinuxTar()

utility.remoteUpload(distributionType="stable")
# utility.remoteUpload(distributionType="stable")

if __name__ == "__main__":
main(sys.argv[1:])
Expand Down
Loading

0 comments on commit 2626ebe

Please sign in to comment.