From d70bc9c072734e98aced0708a576909fd93f6a77 Mon Sep 17 00:00:00 2001 From: Sergio Zamudio Date: Fri, 26 Mar 2021 17:51:01 -0500 Subject: [PATCH 1/2] SG-21701 Replace instances of Shotgun strings in .py files in all tk-* repos with "SG" --- python/tk_multi_snapshot/snapshot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python/tk_multi_snapshot/snapshot.py b/python/tk_multi_snapshot/snapshot.py index 7a11bd1..e038aff 100644 --- a/python/tk_multi_snapshot/snapshot.py +++ b/python/tk_multi_snapshot/snapshot.py @@ -430,10 +430,8 @@ def show_snapshot_dlg(self): msg = "Unable to snapshot!\n\nPlease save the scene as a valid work file before continuing" QtGui.QMessageBox.information(None, "Unable To Snapshot!", msg) - # try to launch "Shotgun Save As" command if we have it: - save_as_cmd = tank.platform.current_engine().commands.get( - "Shotgun Save As..." - ) + # try to launch "SG Save As" command if we have it: + save_as_cmd = tank.platform.current_engine().commands.get("SG Save As...") if not save_as_cmd: # try old name, just in case save_as_cmd = tank.platform.current_engine().commands.get( From 7d2d8a02f0308a6575d97a7491c1c926d00d7236 Mon Sep 17 00:00:00 2001 From: Sergio Zamudio <43821765+zamu5@users.noreply.github.com> Date: Wed, 19 May 2021 09:53:11 -0500 Subject: [PATCH 2/2] Update python/tk_multi_snapshot/snapshot.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jean-François Boismenu --- python/tk_multi_snapshot/snapshot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/tk_multi_snapshot/snapshot.py b/python/tk_multi_snapshot/snapshot.py index e038aff..acb95d1 100644 --- a/python/tk_multi_snapshot/snapshot.py +++ b/python/tk_multi_snapshot/snapshot.py @@ -431,7 +431,10 @@ def show_snapshot_dlg(self): QtGui.QMessageBox.information(None, "Unable To Snapshot!", msg) # try to launch "SG Save As" command if we have it: - save_as_cmd = tank.platform.current_engine().commands.get("SG Save As...") + save_as_cmd = ( + tank.platform.current_engine().commands.get("SG Save As...") or + tank.platform.current_engine().commands.get("Shotgun Save As...") + ) if not save_as_cmd: # try old name, just in case save_as_cmd = tank.platform.current_engine().commands.get(