* MarkerCommandType now has a public constructor allowing custom
command marker types.
* Video effect and event motion key frames now have a Type property
which determines how their properties are interpolated.
* New Vegas.Exit() function quits Vegas upon completion of script.
* TrackEvent.Copy() method copies an event to a given track and start
time.
* Setting an AudioEvent's normalize property now waits for peaks to be
built (so that the gain is not set to zero). Also, scripts can call
AudioEvent.RecalculateNorm() to recalculate the normalization gain.
Bug Fixes:
* Setting an AudioEvent's ChannelRemapping property now causes event
to be redrawn properly upon script completion (or UpdateUI).
* Setting the Track property of a TrackEvent now works with an event
that is grouped.
* BusTracks.Clear() no longer attempts to delete master bus tracks.
* Project length is now properly recalculated when changed by a
script.
* Fades no longer "baked" into events when playlists changed by
scripts.
* TrackEvent.Copy() method copies an event to a given track and start time.
What is the exact format for this command? Where do you specify the "given track and start time"? Is there an updated HTM document with this command? It doesn't seem to be in the CHM file made by craziedde.
Also, does it return the new event or do you have to subsequently find it?
The new docs have just been made available in the SampleScripts.zip archive on our web site. The Copy method takes two parameters, the destination track and the new event's start time, and returns the new event. Here's an example:
// ...
var sourceEvent = Vegas.Project.Tracks[0].Events[0];
var destTrack = Vegas.Project.Tracks[1];
var startTime = sourceEvent.Start;
// or any start time you want...
// var startTime = new Timecode("00:01:20:00");
var newEvent = sourceEvent.Copy(destTrack, startTime);