AWS Deadline Cloud for KeyShot
Project description
AWS Deadline Cloud for KeyShot
AWS Deadline Cloud for KeyShot is a python package that allows users to create AWS Deadline Cloud jobs from within KeyShot. Using the Open Job Description (OpenJD) Adaptor Runtime this package also provides a command line application that adapts KeyShot's command line interface to support the OpenJD specification.
Compatibility
This library requires:
- KeyShot 2023 or 2024
- Python 3.9 or higher; and
- Windows or macOS operating system.
Submitter
This package provides a KeyShot plugin script that creates jobs for AWS Deadline Cloud using the AWS Deadline Cloud client library. Based on the loaded scene it determines the files required, allows the user to specify render options with KeyShot's render interface, and builds an OpenJD template that defines the workflow.
Installing and using the KeyShot Submitter
- Run
pip install deadline[gui]
- Copy the file
deadline-cloud-for-keyshot/src/deadline/keyshot_submitter/Submit to AWS Deadline Cloud.py
to the KeyShot scripts folder for your OS:- Windows (choose one):
- User scripts folder e.g.
%USERPROFILE%/Documents/KeyShot/Scripts
- System-wide scripts folder e.g.
%PROGRAMFILES%/KeyShot/Scripts
- User scripts folder e.g.
- Mac:
/Library/Application Support/KeyShot12/
or/Library/Application Support/KeyShot/
depending on your version of Keyshot.- You can navigate to the folder by going to Finder, clicking the menu for Go -> Go to Folder, and typing in the folder path.
- Windows (choose one):
- Launch KeyShot. The submitter can be launched within KeyShot from
Window > Scripting Console > Scripts > Submit to AWS Deadline Cloud > Run
Submission Modes
There are two submission modes for the KeyShot submitter which a dialog will ask you to select from before opening the submitter UI.
- Attach
The scene BIP file and all external files references
- The open scene file and all external files referenced within will be included as job attachments. The submitter will export the open scene to a KSP(KeyShot Package) which turns all file paths in the scene into relative paths and creates a flattened directory with all of the external files directly beside the scene file. The KSP is then unzipped, and the new scene file with the relative paths and all external files will be submitted with the job. The temporary directory used to save the KSP will be deleted after each submission.
- Attach
Only the scene BIP file
- Only the open scene file will be attached to the submission. The expectation is that any external files referenced within the scene will be available to the workers through network storage or some other method.
Adaptor
The KeyShot Adaptor implements the OpenJD interface that allows render workloads to launch KeyShot and feed it commands. This gives the following benefits:
- a standardized render application interface,
- sticky rendering, where the application stays open between tasks
Jobs created by the submitter use this adaptor by default.
Using the KeyShot Adaptor
-
Build and install
deadline-cloud-for-keyshot
on your workers- The adaptor can be installed by the standard python packaging mechanisms:
$ pip install deadline-cloud-for-keyshot
- After installation it can then be used as a command line tool:
$ keyshot-openjd --help
- The adaptor can be installed by the standard python packaging mechanisms:
-
KeyShot doesn't use PYTHONPATH and has a limited standard library so we explicitly load modules from the paths specified in the environment variable
DEADLINE_CLOUD_PYTHONPATH
. On your workers set the environment variableDEADLINE_CLOUD_PYTHONPATH
to include paths to the following modules:- openjd
- deadline
- pywin32_system32
- win32
- Pythonwin
e.g. On Windows running the worker in a virtual environment it might look something like:
set DEADLINE_CLOUD_PYTHONPATH=C:/Users/<USER>/workervenv/Lib/site-packages/openjd;C:/Users/<USER>/workervenv/Lib/site-packages/deadline;C:/Users/<USER>/workervenv/Lib/site-packages/pywin32_system32;C:/Users/<USER>/workervenv/Lib/site-packages/win32;C:/Users/<USER>/workervenv/Lib/site-packages/win32/lib;C:/Users/<USER>/workervenv/Lib/site-packages/pythonwin
-
Configure licensing for KeyShot by setting the environment variable
LUXION_LICENSE_FILE=<PORT>:<ADDRESS>
to point towards the license server to use- e.g.
setx LUXION_LICENSE_FILE "2703@127.0.0.1"
- e.g.
-
The adaptor expects the keyshot_headless executable is available through the PATH environment variable.
- 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
- e.g. Local install:
Versioning
This package's version follows Semantic Versioning 2.0, but is still considered to be in its initial development, thus backwards incompatible versions are denoted by minor version bumps. To help illustrate how versions will increment during this initial development stage, they are described below:
- The MAJOR version is currently 0, indicating initial development.
- The MINOR version is currently incremented when backwards incompatible changes are introduced to the public API.
- The PATCH version is currently incremented when bug fixes or backwards compatible changes are introduced to the public API.
Security
See CONTRIBUTING for more information.
Telemetry
See telemetry for more information.
License
This project is licensed under the Apache-2.0 License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file deadline_cloud_for_keyshot-0.2.2.tar.gz
.
File metadata
- Download URL: deadline_cloud_for_keyshot-0.2.2.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38d5e0faa52c893451dc1b40dbe542f97b262ea0c26640e19dca65be15a9aa0d |
|
MD5 | cef46f3f5745e227fe88b65c88a197f3 |
|
BLAKE2b-256 | 0d9281e8ed44a3af117b6679fb089a7bded052adab90dc50f49a92d67cb209c3 |
File details
Details for the file deadline_cloud_for_keyshot-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: deadline_cloud_for_keyshot-0.2.2-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc83957d8a53c3af295c2f4f09ef985563b99f9d2baebb8dac95dfc977cac880 |
|
MD5 | ed296e8c2c0bae0158ae500f4189a5af |
|
BLAKE2b-256 | 83d1f017b059ec0d7c19e0f4ac8efa6ba56f38183d36a1f96091c2a6a4df77c7 |