First step to Script in Da vinci Resolve Studio

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

FranzDev78

  • Posts: 8
  • Joined: Mon Mar 04, 2024 4:30 pm
  • Real Name: Franco Zega

First step to Script in Da vinci Resolve Studio

PostMon Mar 04, 2024 4:40 pm

Hi everyone, I'm new to this environment and this program,
so forgive the questions, which are certainly banal.

to start I'm simply trying to create a button in an html page that returns me the name of the timeline....

I followed the basic instructions and copied the example plugin under the folder ... "Blackmagic Design\DaVinci Resolve\Support\Workflow Integration Plugins\"

then in the html page I copied as per example:
Code: Select all
const WorkflowIntegration = require('./WorkflowIntegration.node');
const pluginId = "com.blackmagicdesign.resolve.sampleplugin";
 isInitialized = WorkflowIntegration.Initialize(pluginId);
 if (!isInitialized) {
             alert("Error: Failed to initialize!");
         }

         // Get resolve object
         resolve = WorkflowIntegration.GetResolve();
         if (!resolve) {
             alert("Error: Failed to get resolve object!");
         }

const currentTimeline = resolve.GetProjectManager().GetCurrentProject().GetCurrentTimeline()
console.log(currentTimeline)



but I get the following error:


Uncaught Error: \\?\C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\Workflow Integration Plugins\SamplePlugin\WorkflowIntegration.node is not a valid Win32 application.
\\?\C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\Workflow Integration Plugins\SamplePlugin\WorkflowIntegration.node



I'm definitely doing something wrong...
Could you kindly tell me how to initialize the script?
Did I take the wrong approach?


Thanks for the kind replies.
Offline

FranzDev78

  • Posts: 8
  • Joined: Mon Mar 04, 2024 4:30 pm
  • Real Name: Franco Zega

Re: First step to Script in Da vinci Resolve Studio

PostTue Mar 05, 2024 11:30 am

Post the solution founded,

it was enough to simply copy the WorkflowIntegration.node file into the directory;
it was probably corrupt


thank you all.

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 16 guests