Identifying render templates marked as Favorites

Howard-Vigorita wrote on 7/28/2025, 2:47 PM

Anyone know how to identify a render template marked as a Favorite? I use a minimally modified Batch Render script based on the default one supplied with Vegas but it doesn't show which ones I have marked in Vegas as Favorites. I can throw stars in front of the displayed names by hard-wiring info from the template names into the stock script like this:

//Stock Code:
                        String templateName = template.Name;
//Replacement Code to add * between check-box and template names if 32/64 is in the name                         
                        String templateName = template.Name;
                        if ( templateName.Contains("32/64")) { templateName = " * " + templateName; }
                        else { templateName = "   " + templateName; }

Comments

jetdv wrote on 7/28/2025, 3:18 PM

I do not know of a way to see whether or not a template is a "favorite" in the API.

You might look here:

"C:\Users\<user name>\AppData\Roaming\VEGAS\Render Templates\Favorites.settings"

which appears to have this:

<Settings>
  <Favorites>
    <Item>4c184f1e-4d99-4353-9de0-e49da388cb63.5d5c985c-d152-49cd-9fca-d62aa84fa963</Item>
    <Item>4c184f1e-4d99-4353-9de0-e49da388cb63.48ea3bf3-60cd-4926-b0bb-fe591b144de2</Item>
    <Item>4c184f1e-4d99-4353-9de0-e49da388cb63.62eeed24-994f-40af-bd2e-beff48c9e0c6</Item>
    <Item>4c184f1e-4d99-4353-9de0-e49da388cb63.6cc295b5-2487-456d-b40d-2aa00133e978</Item>
    <Item>4c184f1e-4d99-4353-9de0-e49da388cb63.bf2bcd48-dee7-4c4e-bd73-6785443b1ff5</Item>
  </Favorites>
</Settings>

So you might be able to compare the template GUID to these numbers.

Howard-Vigorita wrote on 7/28/2025, 5:37 PM

Thanks!!!

Howard-Vigorita wrote on 7/29/2025, 8:13 PM

This was easier than I thought. Once I stopped overthinking how to parse an xml file into a DataTable for lookups.
Here's the brain-dead way I did it:

before getting into the template reading loop:

// read the favorites xml file into a string variable
String xmldir = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData);
xmldir = xmldir + "\\VEGAS\\Render Templates\\";
string fileName = xmldir + "favorites.Settings";
string xml = File.ReadAllText(fileName);

then replace the stock code I mentioned earlier with this:

String templateName = template.Name;
string guid = template.TemplateGuid.ToString();
bool found = xml.Contains(guid);
if ( found ) { templateName = " * " + templateName; }
else { templateName = "   " + templateName; }