An OpenTimelineIO plugin for DaVinci Resolve Studio. This is a just a simple project used to get familiar with the Python API in Resolve.
Currently only exporting is supported as the Resolve API doesn't have a way of laying out clips on the timeline.
Tested with Resolve 17.4.3.
-
pip install opentimelineio
-
Copy the
otio.py
to the following location:Mac OS X:
/Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Comp/
or~/Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Comp/
Linux:
/opt/resolve/Fusion/Scripts/Comp/
or/home/resolve/Fusion/Scripts/Comp/
depending on installationWindows:
%APPDATA%\Blackmagic Design\DaVinci Resolve\Fusion\Scripts\Comp\
-
Modify the sys.path.append line of the
otio.py
plugin to point to the location of the python site-packages where the OpenTimelineIO package is installed.
In DaVinci Resolve, open a Python console from Workspace > Scripts > Console and run the script with exec(open("/PATH/TO/otio.py", "rb").read())
. This will open a window with two buttons. The first allows for selecting the export destination and the second performs the export.
From the DaVinci Resolve Studio menu select Workspace > Scripts > otio. This will open a window with two buttons. The first allows for selecting the export destination and the second performs the export.
- Only export is supported as the Resolve API doesn't have a way of laying out clips on the timeline
- This should work on Windows but no work or testing has taken place on Windows
I found the easiest way to use Python 3.6 with Resolve is to use the installer from python.org but do a custom install and only install the framework. I use a conda Python 3.6 environment for installing pip packages and just make sure to append the site-packages from the conda environment to the path in any scripts I run in Resolve
I wouldn't consider it ideal, but it works.