init_code
This commit is contained in:
24
gui/maya_garmentviewer.py
Normal file
24
gui/maya_garmentviewer.py
Normal 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)
|
||||
Reference in New Issue
Block a user