Adding video direct to multiple tracks

mike-p wrote on 1/15/2023, 8:34 PM

I have been trying to write Javascript code to add a video clip (the same clip) to 2 separate video tracks at different times

I cannot find anything in the API that allows me to add a clip to a specific video track. All that I see is Vegas.Project.AddVideoTrack() allows you to add a track, and Vegas.OpenFile() allows you to import a video file. There is nothing I can find in the API document that allows you to open a video file via the media pool as well? Can someone point me in the right direction here?



EDIT: Vegas.OpenFile() seems to import the file into the first track that was created regardless of which track is selected - this is part of the problem I am experiencing.