Comments

BrianStanding wrote on 5/12/2003, 12:55 PM
Can you provide details on the scripting enhancements? The readme doesn't say.
Thanks.
SonyPJM wrote on 5/12/2003, 1:48 PM

Here's a list of changes for scripting in 4.0c:

Enhancements:

* 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.
jetdv wrote on 5/12/2003, 2:18 PM
* 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?
SonyPJM wrote on 5/12/2003, 2:44 PM
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);

/// ...

jetdv wrote on 5/13/2003, 10:29 AM
Thanks SonicPJM, the copy command works GREAT. The next release of Excalibur will now REQUIRE 4.0c.
sacherjj wrote on 5/13/2003, 10:37 AM
Ed, let me know if you need someone to help test the new version of the Multi-Cam, implementing the new copy.