Last active
November 29, 2019 08:08
-
-
Save Meatplowz/bb1d71bbd0da66ddeba46d8c68108654 to your computer and use it in GitHub Desktop.
Revisions
-
Meatplowz revised this gist
May 18, 2018 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,4 +4,8 @@ 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)
-
Meatplowz created this gist
May 18, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ 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)