Python Scripting Grab a Clip.

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

gkuchera

  • Posts: 3
  • Joined: Thu Jul 03, 2025 2:24 am
  • Real Name: Geoff Kuchera

Python Scripting Grab a Clip.

PostFri Jul 04, 2025 3:31 am

Is there a way through the API to grab a Clip of a defined length from a timeline?

I do Stock video and would love to be able to grab with a single key a 30second or 60second clip and add it to a sub clips directory.

i have been playing with the python API for a few days now and it seems like i have most of what i need, i just can't figure out how to create the sub clip.

Any help would be appreciated.

Thanks,
Geoff Kuchera
Offline

gkuchera

  • Posts: 3
  • Joined: Thu Jul 03, 2025 2:24 am
  • Real Name: Geoff Kuchera

Re: Python Scripting Grab a Clip.

PostFri Jul 04, 2025 12:18 pm

I would be happy to be able to do this in the viewer as well, since i just read that's where sub-clips are made. My goal here is to be able to go through a large amount of media and be able to quickly isolate clips of set sizes from the current play head location to that +30 or 60 Seconds that I can eventually put on a timeline and then export as individual clips later.

Trying to build a better workflow for this process.

Thanks,
Geoff
Offline

Christoph Schmid

  • Posts: 939
  • Joined: Thu Sep 26, 2019 10:15 am
  • Real Name: Christoph Schmid

Re: Python Scripting Grab a Clip.

PostFri Jul 04, 2025 3:07 pm

Unfortunately, there is no way to create subclips with the API.
What you can do is set Duration Markers.
You have individual access to them in the MediaPool in List view.
You can also set up a SmartBin to view them.

Davinci Resolve Studio 20.0.1 Build 6
Windows 10 Pro 22H2
Davinci Resolve Studio 19.1.4 Build 11
Linux Ubuntu Studio 24.04 (Rocky 8.6 Container)
Offline

gkuchera

  • Posts: 3
  • Joined: Thu Jul 03, 2025 2:24 am
  • Real Name: Geoff Kuchera

Re: Python Scripting Grab a Clip.

PostFri Jul 04, 2025 5:31 pm

Christoph Schmid wrote:Unfortunately, there is no way to create subclips with the API.
What you can do is set Duration Markers.
You have individual access to them in the MediaPool in List view.
You can also set up a SmartBin to view them.


Thanks i'll look into that.

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 63 guests