Change Clip Duration Programmatically...

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

estebanjgarcia

  • Posts: 43
  • Joined: Wed Jul 14, 2021 8:24 am
  • Real Name: ESTEBAN GARCIA

Change Clip Duration Programmatically...

PostSat Dec 03, 2022 3:04 pm

I was wondering how can I change a clip duration programmatically?
I'm adding (programmatically) a Text clip and by default lasts 5 seconds, but I would like to be able to change programmatically the length.
I'm almost sure it is very easy to do, but I have not been have to find the right function.
Thanks in advance.
E.
Offline

estebanjgarcia

  • Posts: 43
  • Joined: Wed Jul 14, 2021 8:24 am
  • Real Name: ESTEBAN GARCIA

Re: Change Clip Duration Programmatically...

PostSat Dec 03, 2022 4:40 pm

Is there the only way to change the default clip duration?!?!?!!?
Offline
User avatar

Charles Bennett

  • Posts: 6155
  • Joined: Sat Nov 05, 2016 11:55 am
  • Location: United Kingdom

Re: Change Clip Duration Programmatically...

PostSat Dec 03, 2022 7:19 pm

There is no such thing as a default video clip duration. Video clip duration is down to you selecting in and out points. Other things like Stills, Transitions, and Generators, etc, can have defaults set. You will find these in Preferences/User/Editing/General Settings.
Resolve Studio 18.6.6 build 7
Dell XPS 8700 i7-4790, 24GB RAM, 2 x Evo 860 SSDs, GTX1060/6GB (546.01 Studio Driver), Win10 Home (22H2), Speed Editor, Faderport mk1, Eizo ColorEdge CS230 + BenQ GW2270 + Samsung SA200, Canon C100mk2, Zoom H2n.
Offline

estebanjgarcia

  • Posts: 43
  • Joined: Wed Jul 14, 2021 8:24 am
  • Real Name: ESTEBAN GARCIA

Re: Change Clip Duration Programmatically...

PostSun Dec 04, 2022 6:35 am

Hi Charles... any idea about my original question? How can I change the duration of a clip programmatically?
Offline
User avatar

Charles Bennett

  • Posts: 6155
  • Joined: Sat Nov 05, 2016 11:55 am
  • Location: United Kingdom

Re: Change Clip Duration Programmatically...

PostSun Dec 04, 2022 9:23 am

What are you trying to achieve when you use the term "programmatically"?
Resolve Studio 18.6.6 build 7
Dell XPS 8700 i7-4790, 24GB RAM, 2 x Evo 860 SSDs, GTX1060/6GB (546.01 Studio Driver), Win10 Home (22H2), Speed Editor, Faderport mk1, Eizo ColorEdge CS230 + BenQ GW2270 + Samsung SA200, Canon C100mk2, Zoom H2n.
Offline

jhoepffner

  • Posts: 181
  • Joined: Wed Sep 05, 2018 9:43 am
  • Location: Paris
  • Real Name: Jacques Hoepffner

Re: Change Clip Duration Programmatically...

PostSun Dec 04, 2022 9:39 am

Hello,
Working with Fusion, Houdini and TouchDesigner, I understand what you mean by "programmatically".
The way to change the default text duration is there:
Preferences/User/Editing/Standard generator duration (by default 5')
It will change all the future text, not the old one. It would be change "procedurally" :-)
Jacques
W10 Ryzen7 3800X nVidia 3090 RAM 64 DVR-Fusion Studio 18.6.5 SSD 2To raid0 32To (HD) raid0 8To (SSD)
MSI G65 W10 / RAM 32 nVidia 1070 Intel Core i7-8750H DVR Studio 18.6.5
MBP 15" (2012) OS 10.14.6 RAM 16 nVidia 650M Intell i7 DVR Studio 17.4
Offline

estebanjgarcia

  • Posts: 43
  • Joined: Wed Jul 14, 2021 8:24 am
  • Real Name: ESTEBAN GARCIA

Re: Change Clip Duration Programmatically...

PostWed Dec 07, 2022 5:04 am

Charles Bennett wrote:What are you trying to achieve when you use the term "programmatically"?

Hi Charles, by programmatically I meant by using a script, either Lua or Python...
I'm trying to add TimelineItems with Text+ and I would like to be able to setup a duration for each item... individually and without changing a default setting...
Also in TimelineItem there is a getDuration method but there isnt a setDuration....

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], pixel-challenged and 170 guests