I am new to scripting. I studied Fortran in college which is of little help now, but I have been reading two C# books and think that I know enough to start causing trouble. My first attempt at a basic script failed and I was hoping that someone might be able to explain my mistake(I am having trouble understanding some of Sony's API document). This script had the very easy task of just adding a new media bin, but it crashed and I don't understand why. Any help would be greatly appreciated.
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Sony.Vegas;
namespace General_Script
{
public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
string bin1 = "Bill";
MediaBin billBin = new MediaBin(bin1);
Vegas.Project.MediaPool.RootMediaBin.Add(billBin);
}
}
}
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Sony.Vegas;
namespace General_Script
{
public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
string bin1 = "Bill";
MediaBin billBin = new MediaBin(bin1);
Vegas.Project.MediaPool.RootMediaBin.Add(billBin);
}
}
}