Request: image capture that "shifts gears"

Laurence wrote on 3/24/2007, 2:20 PM
I have an idea for a script but don't have the knowledge to make it work. The idea is a script that does the following:

1/ Switch the project properties to 1920x1080p with an interpolate deinterlace.

2/ Swap a single proxy clip out for the original m2t clip.

3/ Capture a single frame where the cursor is.

4/ Return everything back to normal

I would use this script on every project I used Gearshift on (which is basically every project).

Comments

johnmeyer wrote on 3/24/2007, 5:30 PM
If you're looking to develop something like this yourself, this old "Snapshot to Clipboard" script is a good starting point:

// This script copies a snapshot of the current cursor position to the clipboard

import System.Windows.Forms;
import Sony.Vegas.Script;
import Sony.Vegas;

// Save original Settings
var origPreviewRenderQuality = Vegas.Project.Preview.RenderQuality;
var origPreviewFillSize = Vegas.Project.Preview.FullSize;
var origFieldOrder = Vegas.Project.Video.FieldOrder;
var origProjectDeinterlaceMethod = Vegas.Project.Video.DeinterlaceMethod;

try
{

// Setup Preview for image capture
Vegas.Project.Preview.RenderQuality = VideoRenderQuality.Best;
Vegas.Project.Preview.FullSize = true;

// Set the field order and deinterlace method
Vegas.Project.Video.FieldOrder = VideoFieldOrder.ProgressiveScan;
Vegas.Project.Video.DeinterlaceMethod = VideoDeinterlaceMethod.InterpolateFields;

// Copy Snapshot to Clipboard
Vegas.SaveSnapshot(Vegas.Cursor) == RenderStatus.Complete;

}
catch (e)
{
MessageBox.Show(e);
}


// Restore Previous Settings
Vegas.Project.Preview.RenderQuality = origPreviewRenderQuality;
Vegas.Project.Preview.FullSize = origPreviewFillSize;
Vegas.Project.Video.FieldOrder = origFieldOrder;
Vegas.Project.Video.DeinterlaceMethod = origProjectDeinterlaceMethod;



Laurence wrote on 3/24/2007, 8:11 PM
So the two things I would need to add to this script are the change in properties from SD to 1920x1080p HD and replacing the proxy file with the original clip. Where would I look for a reference for how to write these two commands?