Grouping available in 5.0b

rcampbel wrote on 6/30/2004, 2:17 PM
In browsing through the Sony.Vegas.dll 5.0b interface, I noticed that event grouping has been added to the public API. In the limited testing that I have done so far, it appears to work.

These elements are not in the API doc yet. Are there known problems with grouping? Is grouping going to be added to the API doc soon?

Thanks,

Randall Campbell

Comments

SonyPJM wrote on 6/30/2004, 7:20 PM
Whoops... I forgot to mention that we added grouping in
5.0b. Sorry. Grouping should be OK to use. I'll try to get the updated
docs out tomorrow. Quick example:



// ... assume you have TrackEvent objects assigned to variables event2 - event4

// get the collection of all groups
var allGroups : TrackEventGroups = Vegas.Project.Groups;

// get the first TrackEventGroup
var g1 = allGroups[0];

// get the first event in the group
var event1 = g1[0];

// add an event to the group
g1.Add(event2);

// remove an event from a group
g1.Remove(event2);

// create a new group
var g2 : TrackEventGroup = new TrackEventGroup();
Vegas.Project.Groups.Add(g2);

// add events to new group (do so only after adding group to the project's Groups)
g2.Add(event3);
g2.Add(event4);

// clear (and remove) an entire group
Vegas.Project.Groups.Remove(g2);

// determine if an event is grouped
if (event3.IsGrouped)
print("event3 is a member of a group");

// get an event's group
var event1Group : TrackEventGroup = event1.Group;


roger_74 wrote on 7/1/2004, 6:00 AM
A very welcome addition...

Would it be possible to add a boolean property for the Ignore Event Grouping button? Readonly would be fine.

A property for Auto Ripple would be good too.
rcampbel wrote on 7/1/2004, 5:26 PM
Thanks!

I have grouping working now with one of my scripts. Very cool!

In looking more at the .dll, it appears that there are a lot of other new API features that I hope will also be included in the API doc soon!

Thanks a bunch!

Randall
prairiedogpics wrote on 7/2/2004, 8:16 PM
okay, for us novices: What the heck is grouping and how do you implement it in 5.0b?

Dan
rcampbel wrote on 7/3/2004, 1:03 PM
Grouping is the ability to group events together. It provides the same function as selecting mulitple events on the Vegas timeline and pressing the G key.
dust wrote on 7/4/2004, 12:18 AM
Wow, I just now read about this... I didn't try it out yet, but if it works as you documented (and I'm pretty sure it will :-), these are REALLY good news!! Thanks a lot for this, I will have to rewrite most of my scripts next week ti add the feature *g*

Just one remark.. one of the best additions in 5.0b and you forget to mention it??? tsktsk, bad marketing... but anyway, I'm happy it is there now, and I also hope for a new API doc soon (as far as grouping is concerned, your script example suffices though).