Resolve API - Working with Multiple Tracks in Timeline

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

StargateHenry

  • Posts: 2
  • Joined: Tue Oct 24, 2023 5:56 pm
  • Real Name: Henry Mann

Resolve API - Working with Multiple Tracks in Timeline

PostTue Oct 24, 2023 9:05 pm

I've been racking my brain on this for days. How do you add clips to a video track other than the bottom one?

This should be simple, but I've spent hours going through the README, and I've come up with nothing. The only thing I could find was the function call below, but it causes Resolve to freeze:
media_pool.AppendToTimeline({
"mediaPoolItem": media_pool.GetRootFolder().GetClipList()[0],
"startFrame": 0,
"endFrame": 30,
"mediaType": 1,
"trackIndex": 2,
"recordFrame": 90012})

Has anyone been able to add clips to different tracks in the timeline?
Offline

StargateHenry

  • Posts: 2
  • Joined: Tue Oct 24, 2023 5:56 pm
  • Real Name: Henry Mann

Re: Resolve API - Working with Multiple Tracks in Timeline

PostTue Oct 31, 2023 9:37 pm

Bump. Anyone?
Offline

Marcus Herrick

  • Posts: 47
  • Joined: Thu Aug 23, 2012 8:53 pm

Re: Resolve API - Working with Multiple Tracks in Timeline

PostMon Nov 13, 2023 3:19 am

I've had success using this structure in Lua to append to timeline:
Code: Select all
            subClip = {}
            subClip["mediaPoolItem"] = clip
            subClip["startFrame"] = 0
            subClip["endFrame"] = clipFrames
            subClip["recordFrame"] = StartTimeCodeInFrames -- StartTime in frames
            subClip["trackIndex"] = trackIndexSelected -- select which track
            subClip["mediaType"] = 1 -- video only
   

            mediaPool:AppendToTimeline({ subClip })

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 18 guests