Hi all --
I'm trying to implement something like the Sound Forge regions list functionality in Vegas, using JScript.
First, it appears to me that the region number is just not made visible through the scripting interface. The iterator moving through the Vegas.Project.Regions collection gives all the regions in timeline order, not in the order they were defined (and the order of the number on the flags in the Vegas GUI.)
Also, there is a bug with some kinds of overlapping regions --
I defined a region R1, from 1:00 to 2:00.
I defined a region R2, from 1:00 to 3:00.
I wrote a simple script that iterates through the Region collection, outputting the region name and the start/end points. It prints R1 twice, and never R2. (Actually it seems random -- if I add a few more regions and rerun the script, it may print R2 twice and not R1.) I get the exact same results whether I use the IEnumerator from the GetEnumerator method, or the Item[i] property of the Regions collection.
Bob
I'm trying to implement something like the Sound Forge regions list functionality in Vegas, using JScript.
First, it appears to me that the region number is just not made visible through the scripting interface. The iterator moving through the Vegas.Project.Regions collection gives all the regions in timeline order, not in the order they were defined (and the order of the number on the flags in the Vegas GUI.)
Also, there is a bug with some kinds of overlapping regions --
I defined a region R1, from 1:00 to 2:00.
I defined a region R2, from 1:00 to 3:00.
I wrote a simple script that iterates through the Region collection, outputting the region name and the start/end points. It prints R1 twice, and never R2. (Actually it seems random -- if I add a few more regions and rerun the script, it may print R2 twice and not R1.) I get the exact same results whether I use the IEnumerator from the GetEnumerator method, or the Item[i] property of the Regions collection.
Bob