From bb4a026f4adcf6f58863d0fc916849de07c6c2d7 Mon Sep 17 00:00:00 2001 From: Stephen Crowe Date: Thu, 29 Aug 2024 09:26:02 -0700 Subject: [PATCH] Pull Keyshot version from Keyshot Signed-off-by: Stephen Crowe --- .../keyshot_submitter/Submit to AWS Deadline Cloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deadline/keyshot_submitter/Submit to AWS Deadline Cloud.py b/src/deadline/keyshot_submitter/Submit to AWS Deadline Cloud.py index 4bf28d9..7334721 100644 --- a/src/deadline/keyshot_submitter/Submit to AWS Deadline Cloud.py +++ b/src/deadline/keyshot_submitter/Submit to AWS Deadline Cloud.py @@ -448,7 +448,6 @@ def get_ksp_bundle_files(directory: str) -> Tuple[str, list[str]]: def main(lux): - if lux.isSceneChanged(): result = lux.getInputDialog( title="Unsaved changes", @@ -509,8 +508,9 @@ def main(lux): settings.parameter_values.append({"name": "KeyShotFile", "value": scene_file}) # Add default values for Conda + major_version, minor_version = lux.getKeyShotDisplayVersion() settings.parameter_values.append( - {"name": "CondaPackages", "value": "keyshot=2024.* keyshot-openjd=0.1.*"} + {"name": "CondaPackages", "value": f"keyshot={major_version}.* keyshot-openjd=0.1.*"} ) settings.parameter_values.append({"name": "CondaChannels", "value": "deadline-cloud"})