Allen Campbell
April 8th, 2011, 09:37 PM
I really hope I am not being a pain. Snap Shots in my work is a major Must Have and will be a large part of my work flow.
I ran a search and did the Google thing.
I have been having problems like, Links not working anymore, forum registration problems, and the ones I did find fail.
I did get some info in a JetDV news letter but it is unclear how to apply it. The documet mostly talks about it.
So........... :-° Any help would be great. I am willing to pay for a working script. Something that would put things back to normal after the shot is taken. I just cannot get my hands on one.
I tried the below in two ways. One saved as a .cs and got the error message.........
System.ApplicationException: Script file does not exist: 'C:\Program Files\Sony\Vegas Pro 10.0\Script Menu\SnapshotToClipboard.js'.
at Sony.Vegas.ScriptHost.LoadScriptText()
at Sony.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)
And the same file saved as a .js and got the following........
C:\Program Files\Sony\Vegas Pro 10.0\Script Menu\SnapshotToClipboard.js(17) : Variable 'VideoRenderQuality' has not been declared
C:\Program Files\Sony\Vegas Pro 10.0\Script Menu\SnapshotToClipboard.js(21) : Variable 'VideoFieldOrder' has not been declared
C:\Program Files\Sony\Vegas Pro 10.0\Script Menu\SnapshotToClipboard.js(22) : Variable 'VideoDeinterlaceMethod' has not been declared
C:\Program Files\Sony\Vegas Pro 10.0\Script Menu\SnapshotToClipboard.js(25) : Variable 'RenderStatus' has not been declared
===== The Script Text Below =====
// This script copies a snapshot of the current cursor position to the clipboard
import System.Windows.Forms;
import SonicFoundry.Vegas.Script;
import SonicFoundry.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() == 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;
// This script copies a snapshot of the current cursor position to the clipboard
import System.Windows.Forms;
import SonicFoundry.Vegas.Script;
import SonicFoundry.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() == 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;
I ran a search and did the Google thing.
I have been having problems like, Links not working anymore, forum registration problems, and the ones I did find fail.
I did get some info in a JetDV news letter but it is unclear how to apply it. The documet mostly talks about it.
So........... :-° Any help would be great. I am willing to pay for a working script. Something that would put things back to normal after the shot is taken. I just cannot get my hands on one.
I tried the below in two ways. One saved as a .cs and got the error message.........
System.ApplicationException: Script file does not exist: 'C:\Program Files\Sony\Vegas Pro 10.0\Script Menu\SnapshotToClipboard.js'.
at Sony.Vegas.ScriptHost.LoadScriptText()
at Sony.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)
And the same file saved as a .js and got the following........
C:\Program Files\Sony\Vegas Pro 10.0\Script Menu\SnapshotToClipboard.js(17) : Variable 'VideoRenderQuality' has not been declared
C:\Program Files\Sony\Vegas Pro 10.0\Script Menu\SnapshotToClipboard.js(21) : Variable 'VideoFieldOrder' has not been declared
C:\Program Files\Sony\Vegas Pro 10.0\Script Menu\SnapshotToClipboard.js(22) : Variable 'VideoDeinterlaceMethod' has not been declared
C:\Program Files\Sony\Vegas Pro 10.0\Script Menu\SnapshotToClipboard.js(25) : Variable 'RenderStatus' has not been declared
===== The Script Text Below =====
// This script copies a snapshot of the current cursor position to the clipboard
import System.Windows.Forms;
import SonicFoundry.Vegas.Script;
import SonicFoundry.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() == 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;
// This script copies a snapshot of the current cursor position to the clipboard
import System.Windows.Forms;
import SonicFoundry.Vegas.Script;
import SonicFoundry.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() == 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;