Obtain SonicFoundry.Vegas.Project Reference from external .js?

Mikee wrote on 10/29/2003, 10:39 PM
Is there a way to obtain a reference to the currently running Vegas Project from a .js file not executed/started from the Tools->Scripting Menu. Based on the reading, probably not.

This really boils down to creating an interactive script where you can pick events with a GUI interface and then run a script to manipulate the project.



aboukirev wrote on 10/30/2003, 2:39 PM
I have not tried it myself but here is an alternative approach for the script.
While running a script build list(s) of media/clips on timeline and create a visual form in script to show it to user and allow interactive selection. Also, when user selects event, move Vegas cursor to appropriate position and call refresh for Vegas - that should provide interactive feedback for selection. Representation of timeline could be made look like mini-map with tooltips.

Definitely more work, but should be doable. Especially considering how much would be involved to program getting live selection in Vegas back into the script (is that what you wanted?)

Mikee wrote on 10/30/2003, 8:24 PM

Thanks for the idea! I don't think I'll spend that much time when I wanted to write my first simple script. These things seem to grow.

SonyPJM, if you are reading this, you mentioned here that you'd like suggestions for the next version of Vegas. I suggest the ability to obtain a reference to a running instance of vegas, or alter the garbage collection routine to maintain a reference once the .js has completed. This will enable scripters to interact with Vegas while the script is running. Yeah, issues galor.

SonyPJM wrote on 11/13/2003, 3:46 PM
Good suggestion, thanks.

"Interactive" scripts... scripts (or at least managed plug-ins) that can process application events and can have a dockable GUI is a feature I've been exploring.