Acessing Vegas Pro data from exe-file

sunix wrote on 9/7/2024, 4:16 AM

Hi everyone. I have a university project, where I should create an app, that teaches user something. I decided to make an app that teaches some basics of video editing. I wanted to create some tasks that user should do, and my app would track progress of it (for example, the task is to create 2 video tracks, and it automatically tracks whether there are 2 video tracks in project, or not). I now how to make it as a Script, but that is not that I want

 

So, is it possible to make external app get some data from Vegas? I think that all I need is to.. make this app open Vegas, I guess? Because when we create Script we know the "myVegas" variable, because we openned our extension in Vegas, thus it gets it. But when we use external app we can't just type "myVegas = vegas", we need to change "vegas" to something else, somehow show program, that we try to connect to already openned Vegas tab.

Comments

Howard-Vigorita wrote on 9/7/2024, 9:58 AM

You should be able to start Vegas from a powershell or batch script with a command line argument that causes Vegas to run a Vegas script when it loads. Follow this link and scroll down to: RUNSCRIPT. Then authoring your Vegas script to perform the tasks you need may do the trick. The example shows running a c# script but it should also work if compiled into a dll. There may be better related techniques like scripting a Vegas Custom Command but that's beyond me. That's a job for @jetdv

jetdv wrote on 9/7/2024, 10:05 AM

The way to do this would be to write your application as a "Custom Command" and have the user run your application/custom command from inside VEGAS. A custom command can track changes to the timeline so you will be able to see if two tracks were added, for example. You can even tell if it's one audio and one video track and in what order they were added. But you can't access this information from outside of VEGAS. You'll need them to run your custom command from inside VEGAS.

zzzzzz9125 wrote on 9/7/2024, 10:04 PM

@sunix Perhaps you can send the track data somewhere on the network with a custom command. One useful extension, VEGASRPC, for example, gets track data from VEGAS and displays it on your Discord profile. However, I don't know much about network programming, and can hardly help in this area. You can google for C# network programming related content.

Last changed by zzzzzz9125 on 9/7/2024, 10:06 PM, changed a total of 1 times.

Using VEGAS Pro 22 build 248 & VEGAS Pro 21 build 208.

Information about my PC:
Brand Name: HP VICTUS Laptop
System: Windows 11.0 (64-bit) 10.00.22631
CPU: 12th Gen Intel(R) Core(TM) i7-12700H
GPU: NVIDIA GeForce RTX 3050 Laptop GPU
GPU Driver: NVIDIA Studio Driver 560.70

jetdv wrote on 9/7/2024, 11:13 PM

The best/safest way to do this is to write your application as an extension/custom command.

Peter_P wrote on 9/8/2024, 5:28 AM

Fully agree.