I need to export a list of media used in a project to a text file, like a log so you can run script on all project and get a list of media used. Can it be done?
You didn't say where you wanted this list to be generated. Here is a script to get you started. It just lists the media pool assets in a dialog box. You could add to this script any other media attributes you need.
/**
* Program: ListMediaPoolAssets.js
* Description: This script will list all of the assets in the media pool.
*
* Author: Johnny (Roy) Rofrano john_rofano at hotmail dot com
*
* Date: May 28, 2004 - Initial Release
*
**/
var counter = 0;
try
{
var s : StringBuilder = new StringBuilder();
for (var media in Vegas.Project.MediaPool)
{
s.Append(counter + ": " + media.FilePath + "\n");
counter++;
}
MessageBox.Show(s.ToString());
}
catch (errorMsg)
{
MessageBox.Show(errorMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
/** END OF SCRIPT **/