Page 1 of 1

Resolve API: selected timeline items

PostPosted: Thu Feb 23, 2023 3:32 pm
by pantau000
There seem to be no way to find out if a timeline item is selected or not?

Re: Resolve API: selected timeline items

PostPosted: Mon Feb 27, 2023 8:33 am
by SeldomSeenKid
Not in general and not for multiple items. However, tm:GetCurrentVideoItem() returns the currently selected video clip.

Re: Resolve API: selected timeline items

PostPosted: Mon Feb 27, 2023 12:22 pm
by pantau000
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?

Re: Resolve API: selected timeline items

PostPosted: Mon Feb 27, 2023 5:02 pm
by philipbowser
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.

Re: Resolve API: selected timeline items

PostPosted: Mon Feb 27, 2023 5:46 pm
by pantau000
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 ?

Re: Resolve API: selected timeline items

PostPosted: Mon Feb 27, 2023 5:53 pm
by philipbowser
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

Re: Resolve API: selected timeline items

PostPosted: Mon Feb 27, 2023 6:06 pm
by pantau000
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?

Re: Resolve API: selected timeline items

PostPosted: Mon Feb 27, 2023 7:18 pm
by pantau000
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

Re: Resolve API: selected timeline items

PostPosted: Mon Jun 02, 2025 12:15 pm
by daxliniere
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.