Script to export to frame

cbarg wrote on 3/24/2014, 6:25 PM
I'm using Vegas Pro 12, and DoStudio EX.
I need to export to individual frames from my timelines to be used as "thumbnails" in the DoStudio menus. I've got a script setup (using named markers), but cannot (for the life of me) find a script interface to the function run by Vegas when you press the "Save Snapshot to File" button.

Comments

jetdv wrote on 3/25/2014, 12:46 PM
Excalibur will do this and save the files the names put in the marker labels.

www.jetdv.com/excalibur - look at the Media Snapshots tool on the Assets tab.
ChrisDolan (SCS) wrote on 3/25/2014, 3:56 PM
Sorry, the Vegas scripting API does not expose a simple technique to get thumbnails or preview frames. The only way you can do this without an external tool (like jedtv's) will be to render a single frame using, perhaps using Renderer.CLSID_CSfWICRenderFileClass to make a BMP or PNG.
JohnnyRoy wrote on 3/27/2014, 5:06 PM
> "I've got a script setup (using named markers), but cannot (for the life of me) find a script interface to the function run by Vegas when you press the "Save Snapshot to File" button."

I believe this is the call you are looking for:

RenderStatus rs = vegas.SaveSnapshot("filename.png", ImageFileFormat.PNG, vegas.Transport.CursorPosition);

It will take a snapshot of the preview window at the current cursor position in PNG format.

~jr
cbarg wrote on 3/30/2014, 11:35 AM
Thanks, I'll look into it.