Beispiel #1
0
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")
Beispiel #2
0
def checkPlatform():
    print("Checking platform...")
    if platform.system() != gfCore.platform():
        emitMsg(wrongPlatform)
        return False
    return True
Beispiel #3
0
def macOS():
    return gfCore.platform() == "Darwin"
Beispiel #4
0
def linux():
    return gfCore.platform() == "Linux"
Beispiel #5
0
def windows():
    return gfCore.platform() == "Windows"