Resolve 17.1 Studio, 'External Scripting using' set to Network. Python 2.7
I have two computers with the same version of windows, and the same version of Resolve on them. One will let me run the following python code and it will connect to the resolve API totally fine:
- Code: Select all
import imp
lib = "C:\\Program Files\\Blackmagic Design\\Davinci Resolve\\fusionscript.dll"
dvr_script = imp.load_dynamic("fusionscript", lib)
resolve = dvr_script.scriptapp("Resolve")
The other computer totally fails:
print(dvr_script) outputs
- Code: Select all
<module 'fusionscript' from 'C:\Program Files\Blackmagic Design\Davinci Resolve\fusionscript.dll'>
and print(resolve) outputs
- Code: Select all
None
So it's finding the fusion script dll file and importing it, but not able to access resolve for some reason?
Running the same script on a different computer connects totally fine. I've had this issue in the past multiple times as well. Every time, it's been at a VFX company (multiple companies) on a workstation - not sure if that has anything to do with it?
What sort of environment settings could prevent the above code from connecting to resolve? Unfortunately, I can't run the code from inside of resolve, I have to externally for the job I'm trying to do.