Skip to content

Commit

Permalink
Pull Keyshot version from Keyshot
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crowe <crowest@amazon.com>
  • Loading branch information
crowecawcaw committed Aug 29, 2024
1 parent fb1f0af commit 9b15790
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"})

Expand Down

0 comments on commit 9b15790

Please sign in to comment.