I'm not sure what John's script is trying to do but this will collapse the loop region thus turning it off in Vegas Pro 8.0 (which I know you are using). This will not work in Vegas 7 and below because it uses the new Vegas Pro 8.0 Transport class.
Here is the code:
/**
* Program: ZeroLoopRegion.cs
* Description: This script will remove the loop region and selection in Vegas Pro 8.0
* Author: John Rofrano
*
* Revision Date: May. 19, 2008
**/
using System;
using Sony.Vegas;
class EntryPoint
{
public void FromVegas(Vegas vegas)
{
vegas.Transport.LoopRegionLength = Timecode.FromNanos(0);
vegas.Transport.SelectionLength = Timecode.FromNanos(0);
}
}
Just cut and paste it into ZeroLoopRegion.cs (not .js !) This would be great to place as an icon on the toolbar. I know I would use it a lot and I'm not sure why I didn't think of it a lot sooner. The loop region drives me nuts too when I don't need it.
I found what I needed in turning off the loop for playing by toggling it on and off using the Q key.
That works for what I want as many times I create a loop region inadvertently. I don't care if it's there, I just want to be able to play through it many time.
Works perfectly for me. I added code to move it to the start of the timeline. I'm a beginner in all of this...
/**
* Program: ZeroLoopRegion.cs
* Description: This script will remove the loop region and selection in Vegas Pro 8.0
* Author: John Rofrano
*
* Revision Date: May. 19, 2008
* Bob Denny 31-Jul-2008 Move it to the start of the timeline too.
**/