def start_replacing(self): self.__oldName = self.iptFindName.text() self.__newName = self.iptReplaceName.text() WaapiTools.begin_undo_group() for obj in self.__mainWindow.activeObjects: self.iterate_child_objects(obj) WaapiTools.end_undo_group()
def create_banks_by_matrix(self): self.get_permutations() WaapiTools.begin_undo_group() for permutation in self.permutations: bank_name = self.get_bank_name(permutation) create_sound_bank_by_name(bank_name) WaapiTools.end_undo_group()
def run(self): if WaapiTools.Client is None: return WaapiTools.begin_undo_group() index = 0 for obj in self.__objects: index += 1 self.progressBarCallback.emit( index, obj.name if hasattr(obj, 'name') else obj['name']) self.__processor(obj) self.finishedCallback.emit() WaapiTools.end_undo_group()
def assign_media_to_banks(self): self.get_permutations() WaapiTools.begin_undo_group() for obj in self.__mainWindow.activeObjects: self.iterate_through_children(obj) WaapiTools.end_undo_group()