'MediaTrackEvent' type or namespace name could not be found.

YOUNHEE-LEE wrote on 11/28/2024, 4:33 AM

I am using ScriptPortal.Vegas; and have referenced it, but...

The error message says: "'MediaTrackEvent' type or namespace name could not be found. Please ensure you have the correct using directive or assembly reference."

Errors have occurred.

Does anyone know the reason for this and the solution?

 

Comments

zzzzzz9125 wrote on 11/28/2024, 5:46 AM

MediaTrackEvent doesn't exist at all. Do you want to use TrackEvent?

I recommend checking VEGAS Pro Scripting API Summary to see what you can and can't use in the script.

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 11/28/2024, 9:19 AM

Here's the newest API for VEGAS Pro 22:

https://help.magix-hub.com/video/vegas/22/en/content/topics/external/scriptapi.htm?#