From d6d2dfa6b2758b0acfd8f4c13a5d32bde2a2ca0a Mon Sep 17 00:00:00 2001 From: Joel Wong <127782171+joel-wong-aws@users.noreply.github.com> Date: Mon, 10 Jun 2024 11:50:20 -0500 Subject: [PATCH] feat: add KeyShot 2024 support (#91) Signed-off-by: Joel Wong <127782171+joel-wong-aws@users.noreply.github.com> --- README.md | 8 +- .../deadline-cloud-for-keyshot.xml | 83 +++++++++++-------- 2 files changed, 51 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index ce1d136..7445518 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ AWS Deadline Cloud for KeyShot is a python package that allows users to create [ ## Compatibility This library requires: -1. KeyShot 2023 +1. KeyShot 2023 or 2024 1. Python 3.9 or higher; and 1. Windows, or a macOS operating system. @@ -28,7 +28,7 @@ This package provides a KeyShot plugin script that creates jobs for AWS Deadline 1. Install deadline and Pyside6 - e.g. `pip install deadline[gui]` 2. Copy or link the file `deadline-cloud-for-keyshot/keyshot_script/Submit to AWS Deadline Cloud.py` to the KeyShot scripts folder. - - e.g. On Windows `C:/Users//Documents/KeyShot 12/Scripts` + - e.g. On Windows `C:/Users//Documents/KeyShot/Scripts` 3. Set the following environment variables - Set the environment variable `DEADLINE_PYTHON` as the path to the Python installation where deadline-cloud and PySide2 were installed in step 1. - e.g. On Windows if using Python 3.10 it might be `set DEADLINE_PYTHON=C:/Users//AppData/Local/Programs/Python/Python310/python` @@ -70,8 +70,8 @@ Jobs created by the submitter use this adaptor by default. 3. Configure licensing for KeyShot by setting the environment variable `LUXION_LICENSE_FILE=:
` to point towards the license server to use - e.g. `setx LUXION_LICENSE_FILE "2703@127.0.0.1"` 4. The adaptor expects the keyshot_headless executable is available through the PATH environment variable. - - e.g. Local install: `setx PATH "%LOCALAPPDATA%\KeyShot12\bin;%PATH%"` - - e.g. System install: `setx PATH "%PROGRAMFILES%\KeyShot12\bin;%PATH%"` + - e.g. Local install: `setx PATH "%LOCALAPPDATA%\KeyShot\bin;%PATH%"` + - e.g. System install: `setx PATH "%PROGRAMFILES%\KeyShot\bin;%PATH%"` - Verify by running `keyshot_headless -h` ## Versioning diff --git a/install_builder/deadline-cloud-for-keyshot.xml b/install_builder/deadline-cloud-for-keyshot.xml index a836deb..d2771ae 100644 --- a/install_builder/deadline-cloud-for-keyshot.xml +++ b/install_builder/deadline-cloud-for-keyshot.xml @@ -1,6 +1,6 @@ deadline_cloud_for_keyshot - Deadline Cloud for KeyShot 12 + Deadline Cloud for KeyShot 2023/2024 KeyShot plugin for submitting jobs to AWS Deadline Cloud. 1 0 @@ -8,7 +8,7 @@ KeyShot Plug-in Script - ${keyshot_scripts_folder} + ${keyshot_scripts_directory} keyshotplugin all @@ -56,8 +56,6 @@ - - @@ -65,54 +63,55 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + ${env(KEYSHOT)} + does_not_equal + + - - + + + + - + + ${env(KEYSHOT12)} + does_not_equal + + - + + - - + + + + + + + ${keyshot_resources_directory} + does_not_equal + + + + + + + + - + Deadline Cloud for KeyShot @@ -121,6 +120,18 @@ - Sets the DEADLINE_KEYSHOT environment variable to point the Submit to AWS Deadline Cloud script to the submitter module + + keyshot_scripts_directory + KeyShot Scripts Directory + Path to scripts directory in the KeyShot resources directory. For easiest installation, KeyShot should be installed before installing Deadline Cloud for KeyShot. + 0 + Will be detected from the KEYSHOT or KEYSHOT12 environment variables during installation. If neither exists and the KeyShot component is enabled, this must be input. + yes + keyshot-scripts-directory + Path to scripts directory in the KeyShot resources directory. For easiest installation, KeyShot should be installed before installing Deadline Cloud for KeyShot. + yes + 1 +