How about C#?

belsokar wrote on 7/3/2003, 2:34 PM
I just learned today you can do scripting within Vegas...and I heard it uses the .Net Framework,...I'm a C# programmer (former VB), and while VB would be fine...shouldn't C# work just as well since .NET is based on the CLR? I did a search on C# but didn't really find anything...so hopefully this hasn't been answered a million times already!

Comments

jetdv wrote on 7/3/2003, 4:00 PM
http://www.sonicfoundry.com/forums/ShowMessage.asp?ForumID=4&MessageID=150711

http://www.sonicfoundry.com/forums/ShowMessage.asp?ForumID=6&MessageID=152068

http://www.sonicfoundry.com/forums/ShowMessage.asp?ForumID=21&MessageID=171614


Basically, it doesn't use the "programming" languages - VB, Java, C, C#, ... it uses the "scripting" languages - VBScript & JScript. You *may* get something to work looking at the above threads.
roger_74 wrote on 7/3/2003, 4:57 PM
Use a .js-file as a starting point that you run from Vegas:

import SonicFoundry.Vegas;

You also need to create an .xml-file that has the same name as the script. It tells the script where to look for your assembly. It should look something like this:

<?xml version="1.0" encoding="UTF-8" ?>

Then in your Visual Studio project, add references to Interop.VegasCOM.dll and SonicFoundry.ScriptHost.dll. Grab the Vegas object sent from the invoking script, and code away! Code completion is a big help.