Hi, I’m trying to use Xojo to control Blackmagic DaVinci Resolve via python3.
Python3 is working and running. Using it either in terminal with python3 Myscript.py or via interactive mode with one line at the time.
Trying to run this example script:
#!/usr/bin/env python
import DaVinciResolveScript as dvr_script
resolve = dvr_script.scriptapp(“Resolve”)
fusion = resolve.Fusion()
projectManager = resolve.GetProjectManager()
projectManager.CreateProject(“Hello World”)
in a myScript.py file, in terminal works fine. Running it in Xojo via Shell, gives me lot of problems…
I have added the full path /user/local/bin/python3 to the command and then the full path to the script but still I only get Error code 1 and no action in resolve.
I also have info about these:
RESOLVE_SCRIPT_API=“/Library/Application Support/Blackmagic Design/DaVinci Resolve/Developer/Scripting”
RESOLVE_SCRIPT_LIB=“/Applications/DaVinci Resolve/DaVinci Resolve.app/Contents/Libraries/Fusion/fusionscript.so”
PYTHONPATH=“$PYTHONPATH:$RESOLVE_SCRIPT_API/Modules/”
What is the best approach here. Any starting tips welcome
Would this be best done in shell in interactive mode ?
the import in the script does this need the full path as well ?
How do I set path for the shell to use ?