Comments

SonyPJM wrote on 1/28/2003, 9:43 AM
You can set it in the project's video properties like so:

Vegas.Project.Video.FieldOrder = VideoFieldOrder.ProgressiveScan;

The possible values are:

VideoFieldOrder.ProgressiveScan
VideoFieldOrder.UpperFieldFirst
VideoFieldOrder.LowerFieldFirst


pgfitzgerald wrote on 1/28/2003, 12:46 PM
I never would have guessed that by looking at the Scripting API Summary.

Thanks,

Paul
pgfitzgerald wrote on 1/28/2003, 2:36 PM
Vegas Scripting is WONDERFUL!

Now I've run into another snag. I can't figure out how to change the level on a video track. Do I HAVE to create a composite level envelope?

Thanks a bunch!

Paul
SonyPJM wrote on 1/28/2003, 5:21 PM

I'm afraid so... for now. The track "level" (Index or DisplayIndex)
cannot be set after it is created. However, if you are creating the
track from your script you can specify the index in the Track object
constructor.

But the code for creating and adjusting the composite level envelope
is:

var compositeEnvelope = new Envelope(EnvelopeType.Composite)
track.Envelopes.Add(compositeEnvelope);
compositeEnvelope.Points[0].Y = levelValue;

where the track variable is your target Track object and levelValue is
an appropriate double value that is between the envelope's Min and Max
properties.
SonyPJM wrote on 1/28/2003, 5:23 PM

I know the docs are very sparse at this point but what specifically do
you find confusing in this case?
pgfitzgerald wrote on 1/28/2003, 6:14 PM
It was just a silly mistake on my part, but for some reason I thought I needed to do this:

Vegas.Project.ProjectVideoProperties.VideoFieldOrder = VideoFieldOrder.UpperFieldFirst;

Instead of this:

Vegas.Project.Video.FieldOrder = VideoFieldOrder.UpperFieldFirst;

The document is quite clear. I just wasn't looking at it correctly.

Thanks for the help!

Paul