This script will add one second to the loop region which is very helpful when using the Vegas2Handbrake script. Please, don't thank me, thank Ed (jetdv) for providing this simple, yet very useful script to us.
using Sony.Vegas;
public class EntryPoint
{
Vegas myVegas;
Timecode offset = new Timecode("00:00:01:00"); //1 second
public void FromVegas(Vegas vegas)
{
myVegas = vegas;
myVegas.SelectionLength = myVegas.SelectionLength + offset;
}
}