Running scripts from "Comp" folder

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

DeddyII

  • Posts: 7
  • Joined: Wed Mar 13, 2019 11:31 am
  • Real Name: Asko Krimann

Running scripts from "Comp" folder

PostWed Oct 09, 2019 9:32 am

Hello,

As I understand I should be able to run scripts outside the DaVinci - with that I mean, clicking on script file or GUI.

I have looked into topics and videos but I don't understand why that isn't working. I placed example script that they provide to that "Comp" folder so it's also shown at Fusion -> Script. But when clicking on script or triggering it from Fusion menu, it says: ImportError: No module named python_get_resolve

But when I drag same script from Examples folder, it works, but only with dragging to Fusion console. When I click on script on that Example folder it says: Unable to find module DaVinciResolveScript from $PYTHONPATH - trying default locations
Unable to find module DaVinciResolveScript - please ensure that the module DaVinciResolveScript is discoverable by python

I have python installed and running Studio version.

Anyone have ideas how to solve this problem?
Offline
User avatar

Igor Riđanović

  • Posts: 553
  • Joined: Thu Jul 02, 2015 5:11 am
  • Location: Los Angeles, Calif.

Re: Running scripts from "Comp" folder

PostWed Oct 16, 2019 9:19 pm

Your script in comp directory does not know where the python_get_resolve.py module is located.

You can solve this by either using imp to import the module from it's default path, or you can move the module to the comp directory.

Tip: there is zero Resolve-centric discussion on the dev subforum. All the scripting talk is on the main Resolve subforum as well as Steak Underwater forum.
www.metafide.com - DaVinci Resolve™ Apps

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 3 guests