Page 1 of 1

setting duration or start/end for timeline item

PostPosted: Tue Mar 31, 2020 11:52 pm
by tin921
is it possible to change the duration of an media item on a timeline?

i know there is a TimelineItem:GetDuration(), but there is not a TimelineItem:SetDuration() ?

i know there is a MediaPool:AppendToTimeline(clip), but nothing like MediaPool:AppendToTimeline(clip, duration) ?

or the create timeline from xml import, can i have duration in the xml? is there any sample?

i am looking to overlay a bunch of slide[##].png on a video in order. i want to just manually set markers, then fill another video track with the PNGs of different durations based on those markers. is it possible to do it with scripting?

please help, thank you!

Re: setting duration or start/end for timeline item

PostPosted: Wed Apr 15, 2020 12:18 pm
by antoine

I'm wondering the same.

Also, how do you insert the clip wherever you want in the timeline (start, end, in, out, playbackSpeed) and on the video tracks and audio tracks you want ? (AppendToTimeline() doesn't have this kind of arguments)