Hi, i found those lines of codes in Export EDL,js, but i can't figure out how to convert them to c sharp. The ideea is that when you try to run the script, but a project has no tracks (video or audio), a message box shoud appear saying that are no tracks to export.
var videoTrack = FindTopTrackOfType(MediaType.Video);
var audioTrack = FindTopTrackOfType(MediaType.Audio);
if ((null == videoTrack) && (null == audioTrack))
{
throw "no tracks to export";
}