def launchMayaNodes(): """Launch gfToolsNodes for Autodesk Maya.""" if gfCore.platform() == "Windows": cmds.loadPlugin("gfToolsNodes.mll") elif gfCore.platform() == "Linux": cmds.loadPlugin("gfToolsNodes.so") else: cmds.loadPlugin("gfToolsNodes.bundle")
def checkPlatform(): print("Checking platform...") if platform.system() != gfCore.platform(): emitMsg(wrongPlatform) return False return True
def macOS(): return gfCore.platform() == "Darwin"
def linux(): return gfCore.platform() == "Linux"
def windows(): return gfCore.platform() == "Windows"