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

Update resolve addon documentation - Custom python 3.x interpreter #127

Merged
merged 4 commits into from
Feb 2, 2024
Merged
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
29 changes: 28 additions & 1 deletion website/docs/addon_resolve_admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,31 @@ As it is shown in below picture you have to go to Fusion Tab and then in Fusion
![Create menu](assets/resolve_fusion_script_settings.png)

</div>
</div>
</div>

### Custom DaVinci Resolve Python 3.x interpreter

In the **Studio Settings** -> **Applications** -> **Resolve** section, you can change the environment variables to configure a custom python interpreter.

e.g. An example of a possible configuration, or use hard-coded and write it in the environment configuration.

```bash
{
"RESOLVE_UTILITY_SCRIPTS_SOURCE_DIR": [],
"RESOLVE_PYTHON3_HOME": {
"windows": "{CUSTOM_RESOLVE_PYTHON_HOME}",
"darwin": "{CUSTOM_RESOLVE_PYTHON_HOME}",
"linux": "{CUSTOM_RESOLVE_PYTHON_HOME}"
}
}
```

Set your python 3.x interpreter directory to the environment variable `CUSTOM_RESOLVE_PYTHON_HOME`.

Next, you'll need to use your custom python interpreter to install some of the necessary packages

1. `python -m pip install PySide2`
2. `python -m pip install OpenTimelineIO`

### Enable Scripting
In Resolve go to `DaVinci Resolve > Preferences > System > General`. Set `External scripting using` to `Local`.