init_code

This commit is contained in:
sky
2025-07-03 17:03:00 +08:00
parent a710c87a2b
commit 89766fe3d1
220 changed files with 479903 additions and 77 deletions

24
gui/maya_garmentviewer.py Normal file
View File

@@ -0,0 +1,24 @@
"""
Loads maya interface for editing & testing template files
* Maya 2022+
* Qualoth
"""
from maya import cmds
from importlib import reload
# My modules
from pygarment import mayaqltools as mymaya
reload(mymaya)
# -------------- Main -------------
if __name__ == "__main__":
print('Load plugins')
mymaya.qualothwrapper.load_plugin()
cmds.loadPlugin('mtoa.mll') # https://stackoverflow.com/questions/50422566/how-to-register-arnold-render
cmds.loadPlugin('objExport.mll') # same as in https://forums.autodesk.com/t5/maya-programming/invalid-file-type-specified-atomimport/td-p/9121166
try:
mymaya.garmentUI.start_GUI()
except Exception as e:
print(e)