Resolve API: selected timeline items

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

pantau000

  • Posts: 147
  • Joined: Wed Dec 21, 2022 5:42 pm
  • Real Name: Peter Antoni

Resolve API: selected timeline items

PostThu Feb 23, 2023 3:32 pm

There seem to be no way to find out if a timeline item is selected or not?
Offline
User avatar

SeldomSeenKid

  • Posts: 472
  • Joined: Mon May 31, 2021 1:16 pm
  • Location: Germany
  • Real Name: Michael Adrian

Re: Resolve API: selected timeline items

PostMon Feb 27, 2023 8:33 am

Not in general and not for multiple items. However, tm:GetCurrentVideoItem() returns the currently selected video clip.
Good judgement comes from experience. Experience comes from bad judgement.
# Threadripper 32 core / 160GB / RTX4000 8GB / WIN10 #
# BMCC / DVR17.4.6 Studio / Speed Editor / Tangent Ripple / X-Touch One / X-Touch mini / Space Explorer / 5.1 HDMI#
Offline

pantau000

  • Posts: 147
  • Joined: Wed Dec 21, 2022 5:42 pm
  • Real Name: Peter Antoni

Re: Resolve API: selected timeline items

PostMon Feb 27, 2023 12:22 pm

SeldomSeenKid wrote:Not in general and not for multiple items. However, tm:GetCurrentVideoItem() returns the currently selected video clip.

Thanks... So if more than one is selected, it returns any of them?
Offline

philipbowser

  • Posts: 400
  • Joined: Tue Oct 14, 2014 11:53 pm

Re: Resolve API: selected timeline items

PostMon Feb 27, 2023 5:02 pm

SeldomSeenKid wrote:However, tm:GetCurrentVideoItem() returns the currently selected video clip.


This is actually not true, unfortunately. GetCurrentVideoItem() only returns the uppermost video item that is currently under the playhead. Clip selection is not factored in at all. I wish this wasn't the case.
Offline

pantau000

  • Posts: 147
  • Joined: Wed Dec 21, 2022 5:42 pm
  • Real Name: Peter Antoni

Re: Resolve API: selected timeline items

PostMon Feb 27, 2023 5:46 pm

philipbowser wrote:
SeldomSeenKid wrote:However, tm:GetCurrentVideoItem() returns the currently selected video clip.


This is actually not true, unfortunately. GetCurrentVideoItem() only returns the uppermost video item that is currently under the playhead. Clip selection is not factored in at all. I wish this wasn't the case.


Thanks for the info, so there is really no way to know if a clip is selected.

I guess the same is true for a clip/timeline being enabled/locked ?
Offline

philipbowser

  • Posts: 400
  • Joined: Tue Oct 14, 2014 11:53 pm

Re: Resolve API: selected timeline items

PostMon Feb 27, 2023 5:53 pm

Unfortunately no, there is no way to return the selected clip either in a Timeline or the Media Pool.

Please add your voice to this forum post to let Blackmagic know you want this feature:
viewtopic.php?f=21&t=134835&p=828545&hilit=selected+clips+scripting#p828545
Offline

pantau000

  • Posts: 147
  • Joined: Wed Dec 21, 2022 5:42 pm
  • Real Name: Peter Antoni

Re: Resolve API: selected timeline items

PostMon Feb 27, 2023 6:06 pm

philipbowser wrote:Unfortunately no, there is no way to return the selected clip either in a Timeline or the Media Pool.

Please add your voice to this forum post to let Blackmagic know you want this feature:
viewtopic.php?f=21&t=134835&p=828545&hilit=selected+clips+scripting#p828545


Just did so, thanks for the link. Not sure if this shouldn't be moved to feature requests? Unfortunately this forum doesn't seem to have moderators?
Offline

pantau000

  • Posts: 147
  • Joined: Wed Dec 21, 2022 5:42 pm
  • Real Name: Peter Antoni

Re: Resolve API: selected timeline items

PostMon Feb 27, 2023 7:18 pm

pantau000 wrote:I guess the same is true for a clip/timeline being enabled/locked ?


Just saw in another thread that "enabled" seems to be undocumented but available:

https://forum.blackmagicdesign.com/viewtopic.php?t=113040&p=927851
Offline

daxliniere

  • Posts: 48
  • Joined: Thu Mar 14, 2019 11:45 am
  • Real Name: Dax Liniere

Re: Resolve API: selected timeline items

PostMon Jun 02, 2025 12:15 pm

Hey DR dev team,
When will we get some movement on this, please? The lack of this basic functionality is holding back the scripting community. Go and visit the REAPER (DAW) forums and you will see the scripting community is very healthy and a great source of innovation.
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, FireFaceUCX]

Return to DaVinci Resolve

Who is online

Users browsing this forum: Andrew Kolakowski, bounceHouse, Florian Gintenreiter, Google [Bot], MatroxMan, mpetech and 250 guests