/** * This script sets the Pixel Aspect Ratio all media with a video * stream to the desired value. The value must be edited below. * The file extension of this file needs to be changed from .txt to .js * and then drag it into the appropriate script folder, for example * C:/Program Files/Sony/Vegas 7.0/Script Menu * * c.2006 DVFilm * **/ import Sony.Vegas; // Set the following variable to the Pixel Aspect Ratio you wish to // have all video streams use. var targetPAR = .9091; var mediaEnum = new Enumerator(Vegas.Project.MediaPool); while (!mediaEnum.atEnd()) { var media = mediaEnum.item(); if (media.HasVideo()) { var videoStream = media.Streams.GetItemByMediaType(MediaType.Video, 0); videoStream.PixelAspectRatio = targetPAR; } mediaEnum.moveNext(); }