Last active
February 7, 2025 09:04
-
-
Save viktorasm/f85cf7da151d65af498166b2538f1565 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from __future__ import print_function | |
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()) | |
print() | |
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() | |
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() | |
print("opening ngSkinTools2 UI...") | |
import ngSkinTools2; ngSkinTools2.open_ui() | |
print("done.") | |
print("-------------------------------------------") |
This file contains hidden or 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 2024.2 | |
Maya API version: 20240200 | |
OS: win64 Windows 10 Home v2009 (Build: 19045) | |
CPU: AMD64 Family 25 Model 33 Stepping 0, AuthenticAMD | |
Machine: Windows-10-10.0.19045-SP0 | |
Python: 3.10.8 | |
Checking python path: | |
ngSkinTools2 found in python path: | |
* C:\ProgramData\Autodesk\ApplicationPlugins\ngskintools2\Contents\scripts | |
UI version: 2.1.6 | |
Checking plugin path... | |
ngSkinTools2 found in plugin path: | |
* C:/ProgramData/Autodesk/ApplicationPlugins/ngskintools2/Contents/plug-ins | |
* C:/ProgramData/Autodesk/ApplicationPlugins/ngskintools2/Contents/plug-ins/2024 | |
loading plugin... | |
# Warning: Plug-in, "ngSkinTools2.mll", is already loaded. Skipped. | |
plugin loaded: C:/ProgramData/Autodesk/ApplicationPlugins/ngskintools2/Contents/plug-ins/2024/ngSkinTools2.mll | |
plugin version: 2.1.6 | |
opening ngSkinTools2 UI... | |
done. | |
------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment