def closeEvent(self, event): # ProjectDetailsViewUtils.killProcess_WIN('fluidexplorer') # Stop thread if running if self.workThread: self.workThread.stop() # self.workThread.terminate() FluidExplorerUtils.killProcess('fluidexplorer')
def __init__(self, parent=getMayaWindow()): # Initialize qt window super(ControlMainWindow, self).__init__(parent) self.ui = mainUi.Ui_MainWindow() self.ui = mainUi.Ui_MainWindow() self.ui.setupUi(self) # Show always on top self.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) # Set up dark_orange style sheet self.setStyleSheet(ControlMainWindow.getStyleSheet()) # Url for the help page self.url = FLUID_EXPLORER_URL # Initialize connections and icons for the buttons self.createConnections() self.setupButtons() # Position of the plugin main window in the maya app self.centre() # Subprocess number self.pid = None # Close fluidexp if running FluidExplorerUtils.killProcess("fluidexplorer") # Details View self.detailsView = None if self.detailsView: self.detailsView.close() # For tests only runTests = True # runTests = False if runTests: import maya.mel as mel # Animation Start/End Time cmds.playbackOptions(animationStartTime=1.00) cmds.playbackOptions(animationEndTime=15.00) # Logging self.lgr = logging.getLogger("FluidExplorerPlugin")
def closeEvent(self, event): # close (x button) event FluidExplorerUtils.killProcess("fluidexplorer")