Davinci Resolve

Running Shift in Davinci Resolve

Shift can be integrated in Davinci Resolve and used to automate editorial process using all the catalog provided with Shift, but specially the Shift_Resolve catalog.

Resolve Shift UI
Figure 1: Shift UI in Davinci Resolve.

To run Shift inside Davinci Resolve it is required to set up the configuration needed by Blackmagic to be able to execute Python code inside Resolve.

Blackmagic usually provides a Readme.txt file where these requirements are detailed for the version in use in the installation folder C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\Developer\Scripting\Readme.txt

Apart from the official requirements, the PYTHONHOME environment is required to be set. It must point to the Python interpreter to be used in Resolve.

To use the Python interpreter provided with Shift, set up the variable in this way:

PYTHONHOME : <path_to_your_shift_folder>/shift/thirdparty/python

To source Shift in Davinci Resolve the directories of Shift must also be added to the PATH environment variable. The paths to the directories must be set before opening Resolve or in the script that will launch Shift.

  • PATH : <path_to_the_shift_installation_folder>
  • PATH : <path_to_the_shift_installation_folder>/shift/thirdparty/python/Lib/site-packages

Shift Menu

Custom sub-menus in DaVinci Resolve are defined by Python files that are added as entries to the Workspace -> Scripts menu section. This section is divided into folders, with each one corresponding to a workspace layout.

To add a new entry for the Shift menu in Resolve, it is required to add a Python script to the Resolve Scripts folder. This folder can be different for each Resolve version, and it is recommended to check the right directory for the version that is being used. However, typically the folder is located in one of the following locations:

Resolve Scripts Folders
Windows:
  • All users: %PROGRAMDATA%\Blackmagic Design\DaVinci Resolve\Fusion\Scripts
  • Specific user: %APPDATA%\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts

To add Shift as a menu option, it is required to create a Python Script inside a workspace folder, Edit for example. The Python file name will be used as the menu name, soo name the file Shift.

For a Windows local user, the result path for the file will be this one: %APPDATA%\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts\Edit\Shift.py

Inside the file, add the following code:

try:
    import shift
except:
    import sys
    sys.path.append("<path_to_the_shift_installation_folder>")
    sys.path.append("<path_to_the_shift_installation_folder>/shift/thirdparty/python/Lib/site-packages")


from shift.tools import shiftui
shiftui.show()
NOTE

If the paths are added to the environment before opening Resolve, then the code to append the Shift installation folders to the PATH will not be required.

With this file saved, Resolve will show a Shift menu that can be clicked on to open the Shift UI inside Davinci Resolve.

Shift Menu
Figure 2: Shift Menu on Davinci Resolve's top menu bar.

Catalogs

Shift provides a catalog with operators to work with Davinci Resolve. This catalog is not shipped with Shift, but it can be accessed and downloaded from Shift_Resolve.

Inbibo Logo

consultancy, automation and digital creatures

65 Compton Street, London, United Kingdom, EC1V 0BN

info@inbibo.co.uk

Information

Products

© 2024 Inbibo LTD. - All rights reserved - Design & Development: def:studio