This script works fine on most configurations running VP11 (add a video and audio track before to run it):
However, on some configuration, the script return this error:
Any thoughts about this behavior ?
Many thx for your help.
Gilles
using System;
using System.IO;
using System.Text;
using System.Drawing;
using System.Reflection;
using System.Diagnostics;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using Sony.Vegas;
public class EntryPoint
{
Vegas myVegas;
public void FromVegas(Vegas vegas)
{
myVegas = vegas;
bool flag = false;
foreach (Renderer render in myVegas.Renderers)
{
render.Templates.Refresh();
foreach (RenderTemplate renderTamplate in render.Templates)
{
if (renderTamplate.IsValid())
continue;
MessageBox.Show(render.Name);
flag = true;
}
}
if (!flag)
MessageBox.Show("No invalid template found");
}
}
However, on some configuration, the script return this error:
Any thoughts about this behavior ?
Many thx for your help.
Gilles