Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Run 3dsMax in silent mode #52

Merged
merged 6 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ WARNING: This workflow installs additional Python packages into your 3ds Max's p
3. Put `AWSDeadline-SubmitToDeadlineCloud.mcr` and `AWSDeadline-RunJobBundleTests.mcr` in 3ds Max usermacros directory (e.g. `C:\Users\<username>\AppData\Local\Autodesk\3dsMax\<version>\ENU\usermacros`).
4. Modify the path in `AWSDeadline-SubmitToDeadlineCloud.mcr` to `<reporoot>/src/deadline/max_submitter/run_ui.py`. Set the `DEBUG` variable to `true`.
5. Modify the path in `AWSDeadline-RunJobBundleTests.mcr` to `<reporoot>/src/deadline/max_submitter/job_bundle_output_test_runner.py`. Set the `DEBUG` variable to `true`.
6. Install `deadline` package (from CodeArtifact) to `~\DeadlineCloudSubmitter\Submitters\3dsMax\scripts` using a Python 3.9 installation (for compatibility with Max)
6. Install `deadline` package (from CodeArtifact) to `~\DeadlineCloudSubmitter\Submitters\3dsMax\scripts` using a Python 3.10 installation (for compatibility with Max)
- `pip install deadline -t ~\DeadlineCloudSubmitter\Submitters\3dsMax\scripts`

### Usage
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ AWS Deadline Cloud for 3ds Max is a python package that allows users to create [
This library requires:

1. 3ds Max 2024,
1. Python 3.9 or higher; and
1. Python 3.10 or higher; and
1. Windows operating system.

## Submitter
Expand Down
2 changes: 1 addition & 1 deletion src/deadline/max_adaptor/MaxAdaptor/adaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def _start_max_client(self) -> None:

# PythonHost executes 3ds Max with scripts from cli
self._max_client = LoggingSubprocess(
args=[max_exe, "-U", "PythonHost", self.max_client_path],
args=[max_exe, "-U", "PythonHost", self.max_client_path, "-silent", "-dm"],
stdout_handler=regexhandler,
stderr_handler=regexhandler,
)
Expand Down