User Manual
USING SCRIPTING | 399
Chapter 22
Using Scripting
Using the scripting features, Vegas® Pro software becomes an even more powerful and flexible tool. You can use scripting to
streamline repetitive tasks, integrate with external applications, and implement customized features.
To use scripting, you’ll need to install the Microsoft® .NET Framework. This component is available from the Microsoft Windows®
Update site. (Choose Windows Update from the Start menu.)
You can find the scripting API (application programming interface) and sample scripts in the Extras folder of the Vegas Pro
application disc or on our Web site: http://www.sonycreativesoftware.com/download/devkits.
For more information about scripting, check out the Vegas Pro scripting forum:
http://www.sonycreativesoftware.com/forums/ShowTopics.asp?ForumID=21.
Running a script
1.
From the Too ls menu, choose Scripting, and then choose Run Script from the submenu. The Run Script dialog appears.
2.
Browse to the script file (.cs, .js, .vb, or .dll) you want to run.
3.
Select the file and click the Open button. The script runs.
Note:
To use scripts that were created for Vegas Pro 4.0 software, you’ll need to revise the script’s namespace from
SonicFoundry.Vegas to Sony.Vegas. For example, the line that includes “import SonicFoundry.Vegas;” should be changed to “import
Sony.Vegas;” before running the script.
Warning:
Scripts can pose a security risk to your computer. A script has the power to delete files, read files, write files, execute
programs, access the Internet, access files on your network, and so on. Always examine the contents of a script before running it. If
you don’t understand the script, do not run it unless it comes from a trusted source. In general, take the same precautions you would
take for any program you download from the Internet or receive in an e-mail attachment.










