Last active
November 29, 2019 08:08
-
-
Save Meatplowz/bb1d71bbd0da66ddeba46d8c68108654 to your computer and use it in GitHub Desktop.
Quickly Kill Maya Processes
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) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment