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
import maya.cmds as cmds | |
string = "Kill all Maya Processes?" | |
result = cmds.confirmDialog(message = string, button = ["Kill", "Cancel"], defaultButton = "Kill", cancelButton = "Cancel", dismissString = "Cancel", icon = "Warning") | |
if result == "Kill": | |
import subprocess | |
subprocess.call('taskkill /f /im maya.exe', shell=True) | |
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
""" | |
Author: Randall Hess randall.hess@gmail.com | |
Purpose: Boilerplate UI Code for Maya | |
Created: 8/5/2018 | |
""" | |
import maya.cmds as cmds | |
import maya.OpenMayaUI as OpenMayaUI |
NewerOlder