From 32b1bffdb0aed7dc64cb329a17c137bbc0a9b5a0 Mon Sep 17 00:00:00 2001 From: Michael Millspaugh Date: Wed, 3 Aug 2022 11:12:50 -0400 Subject: [PATCH 1/2] remove initial call to _start_preview_update - multiple calls of this method seem to hang the gui in nuke. preview is created fine later by callback after environment is updated --- python/tk_multi_workfiles/file_save_form.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/tk_multi_workfiles/file_save_form.py b/python/tk_multi_workfiles/file_save_form.py index 74276b94..7a0a20f4 100644 --- a/python/tk_multi_workfiles/file_save_form.py +++ b/python/tk_multi_workfiles/file_save_form.py @@ -71,7 +71,9 @@ def __init__(self, parent=None): self._allow_preview_update = True # Manually invoke the preview update here so it is only called once due to the # _allow_preview_update flag. - self._start_preview_update() + # this is unneccesary at this stage, callbacks set the preview update fine, + # and too many calls to this function can lock the gui + #self._start_preview_update("__init__") except Exception: self._allow_preview_update = True app = sgtk.platform.current_bundle() From fe4e2060b7b12c5426e8fdbffe8ffe419c4f25f1 Mon Sep 17 00:00:00 2001 From: Michael Millspaugh Date: Wed, 3 Aug 2022 11:14:00 -0400 Subject: [PATCH 2/2] remove source string in _start_preview_update call --- python/tk_multi_workfiles/file_save_form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tk_multi_workfiles/file_save_form.py b/python/tk_multi_workfiles/file_save_form.py index 7a0a20f4..f93b6b76 100644 --- a/python/tk_multi_workfiles/file_save_form.py +++ b/python/tk_multi_workfiles/file_save_form.py @@ -73,7 +73,7 @@ def __init__(self, parent=None): # _allow_preview_update flag. # this is unneccesary at this stage, callbacks set the preview update fine, # and too many calls to this function can lock the gui - #self._start_preview_update("__init__") + #self._start_preview_update() except Exception: self._allow_preview_update = True app = sgtk.platform.current_bundle()