def reload_script(self) -> None: if self.toolbars.misc.autosave_enabled and not self.script_exec_failed: self.toolbars.misc.save() vs.clear_outputs() self.graphics_scene.clear() self.load_script(self.script_path) self.show_message('Reloaded successfully')
def reload_script(self) -> None: if self.toolbars.misc.autosave_enabled: self.toolbars.misc.save() vs.clear_outputs() self.graphics_scene.clear() self.load_script(self.script_path) self.statusbar.showMessage('Reloaded successfully', self.STATUSBAR_MESSAGE_TIMEOUT)
def reload_script(self) -> None: import gc if not self.script_exec_failed: self.toolbars.misc.save_sync() for toolbar in self.toolbars: toolbar.on_script_unloaded() vs.clear_outputs() self.graphics_scene.clear() self.outputs.clear() # make sure old filter graph is freed gc.collect() self.load_script(self.script_path, reloading=True) self.show_message('Reloaded successfully')
def _set_outputs(self, output_dict): import vapoursynth vapoursynth.clear_outputs() for k, v in output_dict.items(): v.set_output(k)