Last active
March 17, 2021 06:25
-
-
Save viktorasm/f85cf7da151d65af498166b2538f1565 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "-------------------------------------------" | |
import sys | |
import os | |
import platform | |
from maya import cmds | |
print "Environment info:" | |
print "Maya version:", cmds.about(installedVersion=True) | |
print "Maya API version:", cmds.about(apiVersion=True) | |
print "OS:", cmds.about(operatingSystem=True), cmds.about(operatingSystemVersion=True) | |
print "CPU:", platform.processor() | |
print "Machine:", platform.platform(aliased=True) | |
print "Python:", platform.python_version() | |
ngstPath = [i for i in sys.path if "ngskintools2" in i.lower()] | |
print "Checking python path:" | |
if ngstPath: | |
print "ngSkinTools2 found in python path:" | |
print "\n".join(map(lambda x: " * "+x, ngstPath)) | |
from ngSkinTools2 import version | |
print "UI version:", version.pluginVersion() | |
else: | |
print "ngSkinTools2 not in python path" | |
print "Checking plugin path..." | |
ngstPluginPath = [i for i in os.getenv("MAYA_PLUG_IN_PATH").split(os.path.pathsep) if "ngskintools2" in i.lower()] | |
if ngstPluginPath: | |
print "ngSkinTools2 found in plugin path:" | |
print "\n".join(map(lambda x: " * "+x, ngstPluginPath)) | |
print "loading plugin..." | |
result = cmds.loadPlugin('ngSkinTools2') | |
print "plugin loaded:", cmds.pluginInfo('ngSkinTools2', q=True, path=True) | |
print "plugin version:", cmds.pluginInfo('ngSkinTools2', q=True, version=True) | |
else: | |
print "ngSkinTools2 not in plugin path" | |
print "opening ngSkinTools2 UI..." | |
import ngSkinTools2; ngSkinTools2.open_ui() | |
print "done." | |
print "-------------------------------------------" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------- | |
Environment info: | |
Maya version: Autodesk Maya 2020.4 | |
Maya API version: 20200400 | |
OS: win64 Microsoft Windows 10 Technical Preview (Build 19042) | |
CPU: AMD64 Family 23 Model 1 Stepping 1, AuthenticAMD | |
Machine: Windows-10-10.0.19041-SP0 | |
Python: 2.7.11 | |
Checking python path: | |
ngSkinTools2 found in python path: | |
* C:\Users\uiron\projects\ngskintools2\ui\src | |
UI version: 2.0-debug | |
Checking plugin path... | |
ngSkinTools2 found in plugin path: | |
* C:/ProgramData/Autodesk/ApplicationPlugins/ngskintools2/Contents/plug-ins | |
* C:/ProgramData/Autodesk/ApplicationPlugins/ngskintools2/Contents/plug-ins/2020 | |
loading plugin... | |
# Warning: Plug-in, "ngSkinTools2.mll", is already loaded. Skipped. # | |
plugin loaded: C:/Users/uiron/appdata/local/temp/ngSkinTools2.mll | |
plugin version: 2.0-debug | |
opening ngSkinTools2 UI... | |
done. | |
------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment