Resolve UI API questions

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

jasonhanley

  • Posts: 31
  • Joined: Sun Nov 08, 2020 11:52 pm
  • Location: Vancouver, Canada
  • Real Name: Jason Hanley

Resolve UI API questions

PostSun Apr 28, 2024 11:19 pm

Hi all,

I was recently super excited to learn that the Resolve UI has a Python API!

Then I started reading into it, and it seems it's very limited.

My first "simple" test was going to be to apply a certain level of Voice Isolation to all selected clips, but it seems:
1) There's no function to determine which clips are selected, and
2) There's no function to add/change Voice Isolation levels.

Is this actually true, or am I missing something?

And if it is true, is there another way to implement something like this?

I've heard of people reading/writing the database directly, but that seems inadvisable to me.
Resolve Studio 18.6.6
Acer Predator Helios 300, i7-9750H, 16GB RAM
Windows 10 Home 64-bit 21H1 19043.2130
GeForce GTX 1660Ti 6GB, Studio driver 551.86
Offline
User avatar

Igor Riđanović

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

Re: Resolve UI API questions

PostTue Apr 30, 2024 12:55 am

You're correct. The methods you describe don't currently exist, but new features are rolled out all the time.

Many users have asked for something like timeline.GetSelectedItemsList() in the past.

You can ready and write the DB directly, but I wouldn't advise it. It's very easy to invalidate the data.
www.metafide.com - DaVinci Resolve™ Apps
Offline
User avatar

Stefan Weßling

  • Posts: 30
  • Joined: Thu Oct 30, 2014 2:00 am

Re: Resolve UI API questions

PostWed May 01, 2024 9:44 pm

On Media Pool level it is currently (18.6) not possible to retrieve the selected clip.
However on timeline Level you have an option => GetCurrentVideoItem()
Offline
User avatar

Igor Riđanović

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

Re: Resolve UI API questions

PostThu May 02, 2024 5:41 pm

Although the OP is asking about selected clip(s), not a timeline clip that's currently under the playhead.
www.metafide.com - DaVinci Resolve™ Apps
Offline

jasonhanley

  • Posts: 31
  • Joined: Sun Nov 08, 2020 11:52 pm
  • Location: Vancouver, Canada
  • Real Name: Jason Hanley

Re: Resolve UI API questions

PostFri May 03, 2024 2:17 pm

Igor Riđanović wrote:Although the OP is asking about selected clip(s), not a timeline clip that's currently under the playhead.


Yes, exactly. I need to be able to apply effects to multiple clips at the same time.
Resolve Studio 18.6.6
Acer Predator Helios 300, i7-9750H, 16GB RAM
Windows 10 Home 64-bit 21H1 19043.2130
GeForce GTX 1660Ti 6GB, Studio driver 551.86

Return to DaVinci Resolve

Who is online

Users browsing this forum: bentheanimator, cyberphile, xunile, Zev Perelstein and 112 guests