Comments

jetdv wrote on 6/18/2010, 6:57 AM
Once again, scripts can do this and can be assigned to key presses. For example:

V5PreviewFull.js
/**
* This script will set the preview mode to "Preview (Full)"
*
* Written By: Edward Troxel
* www.jetdv.com
* Modified: 02-27-2004
**/


import Sony.Vegas;


Vegas.Project.Preview.RenderQuality = Sony.Vegas.VideoRenderQuality.Preview;
Vegas.Project.Preview.FullSize = true;


V5PreviewAuto.js

/**
* This script will set the preview mode to "Preview (Auto)"
*
* Written By: Edward Troxel
* www.jetdv.com
* Modified: 02-27-2004
**/


import Sony.Vegas;


Vegas.Project.Preview.RenderQuality = Sony.Vegas.VideoRenderQuality.Preview;
Vegas.Project.Preview.FullSize = false;


V5BestAuto.js

/**
* This script will set the preview mode to "Best (Auto)"
*
* Written By: Edward Troxel
* www.jetdv.com
* Modified: 02-27-2004
**/


import Sony.Vegas;


Vegas.Project.Preview.RenderQuality = Sony.Vegas.VideoRenderQuality.Best;
Vegas.Project.Preview.FullSize = false;



jetdv wrote on 6/18/2010, 6:58 AM
Just change the bottom two lines for other desired variations.
Sebaz wrote on 6/18/2010, 9:03 AM
Ed, that's actually very useful. To make a script for Half size, would it be like this?

Vegas.Project.Preview.HalfSize = true;

Seems obvious, but sometimes these things are not so obvious.
baysidebas wrote on 6/18/2010, 9:15 AM
I've been using Macro Express (MACEX) for many years to automate actions even when the app doesn't have scripting capabilities. Not free, but its modest cost has been paid for in saved time and diminished frustration over and over and over. I'm sure there are many free and shareware apps performing similar functions out there. Remember, Google is your friend.
kkolbo wrote on 6/18/2010, 9:24 AM
FanBoy Alert!!!

For all the postings complaining that Vegas doesn't do this or that, how often do we praise that thanks to the forward thinking developers we have a scripting API that allows anyone, not just code junkies, to add the functionality that they want? That simple automation and customization is worth a lot!

KK
jetdv wrote on 6/18/2010, 11:59 AM
Vegas.Project.Preview.PreviewSize = VideoPreviewSize.Half;

Vegas.Project.Preview.PreviewSize = VideoPreviewSize.Quarter;
kentwolf wrote on 6/18/2010, 7:02 PM
Totally awesome!

I completely forgot about scripting.

Thank you so much!
richardbushell wrote on 11/22/2016, 6:20 PM

This thread is ancient, but despite the script working, it does stop playback when running it, whereas changing the preview mode in the native dropdown does not stop playback. Anyone know a solution?

set wrote on 11/22/2016, 8:32 PM

So far I know, for VP14, the

import Sony.Vegas;

needs to be changed to

import ScriptPortal.Vegas;

 

Ref: https://www.vegascreativesoftware.info/us/forum/vegas-pro-scripting-faqs--104563/

I don't focus to scripting..., but perhaps other can try take a look on this...

Setiawan Kartawidjaja
Bandung, West Java, Indonesia (UTC+7 Time Area)

Personal FB | Personal IG | Personal YT Channel
Chungs Video FB | Chungs Video IG | Chungs Video YT Channel
Personal Portfolios YouTube Playlist
Pond5 page: My Stock Footage of Bandung city

 

System 5-2021:
Processor: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz   2.90 GHz
Video Card1: Intel UHD Graphics 630 (Driver 31.0.101.2127 (Feb 1 2024 Release date))
Video Card2: NVIDIA GeForce RTX 3060 Ti 8GB GDDR6 (Driver Version 551.23 Studio Driver (Jan 24 2024 Release Date))
RAM: 32.0 GB
OS: Windows 10 Pro Version 22H2 OS Build 19045.3693
Drive OS: SSD 240GB
Drive Working: NVMe 1TB
Drive Storage: 4TB+2TB

 

System 2-2018:
ASUS ROG Strix Hero II GL504GM Gaming Laptop
Processor: Intel(R) Core(TM) i7 8750H CPU @2.20GHz 2.21 GHz
Video Card 1: Intel(R) UHD Graphics 630 (Driver 31.0.101.2111)
Video Card 2: NVIDIA GeForce GTX 1060 6GB GDDR5 VRAM (Driver Version 537.58)
RAM: 16GB
OS: Win11 Home 64-bit Version 22H2 OS Build 22621.2428
Storage: M.2 NVMe PCIe 256GB SSD & 2.5" 5400rpm 1TB SSHD

 

* I don't work for VEGAS Creative Software Team. I'm just Voluntary Moderator in this forum.

Kit-As-Was wrote on 11/26/2016, 10:46 PM

Despite changing the reference to Sony.Vegas I can't get these scripts to work with V14 Build 201. If anyone has been successful I'd be grateful if they would post the code. Thanks.

OK -  just realised I needed to change all references to Sony to ScriptPortal, eg:

import ScriptPortal.Vegas; 

Vegas.Project.Preview.RenderQuality = ScriptPortal.Vegas.VideoRenderQuality.Best; 
Vegas.Project.Preview.FullSize = false; 

 

NickHope wrote on 11/26/2016, 11:08 PM

Despite changing the reference to Sony.Vegas...

You need to change it from Sony.Vegas to ScriptPortal.Vegas