def Remove(self): if self.path == '': self.path = WaapiTools.get_project_directory() index = self.path.rfind('\\') self.path = self.path[:index + 1] self.auto_remove_wwise_silence( self.path + "Actor-Mixer Hierarchy\\Voice_InGame.wwu") self.auto_remove_wwise_silence( self.path + "Actor-Mixer Hierarchy\\Voice_FrontEnd.wwu")
def connect_to_wwise(self): url = 'ws://127.0.0.1:' + str(self.spbWaapiPort.value()) + '/waapi' try: WaapiTools.Client = WaapiClient(url=url) WaapiTools.Client.subscribe('ak.wwise.core.project.postClosed', self.on_wwise_closed) self.statusbar.showMessage('Wwise已连接到' + WaapiTools.get_project_directory()) self.btnWaapiConnect.setEnabled(False) except CannotConnectToWaapiException: self.statusbar.showMessage('无法连接到Wwise工程...')
def get_originals_folder(): project_path = WaapiTools.get_project_directory() project_dir = trim_path_from_right(project_path) return project_dir + '\\Originals\\'