Script problem

rik wrote on 11/29/2016, 4:28 AM

Hi, i installed a "normalise all" (audio) script. But got an error. Any suggestions? thnx and grtz.

Error 0x80131600 (message missing)

C:\Program Files\VEGAS\VEGAS Pro 14.0\Script Menu\Normalizeall.js(13) : Variable 'Track' has not been declared
C:\Program Files\VEGAS\VEGAS Pro 14.0\Script Menu\Normalizeall.js(17) : Variable 'AudioEvent' has not been declared

The file contains:

/**
 * This script normalizes all Audio Events in the current project.
 * This script works best if you run it after all event peaks have
 * been built.
 *
 * Revision Date: Feb. 10, 2003
 **/

import Sony.Vegas;

var trackEnum : Enumerator = new Enumerator(Vegas.Project.Tracks);
while (!trackEnum.atEnd()) {
    var track : Track = Track(trackEnum.item());
    if (track.IsAudio()) {
        var eventEnum : Enumerator = new Enumerator(track.Events);
        while (!eventEnum.atEnd()) {
            var audioEvent : AudioEvent = AudioEvent(eventEnum.item());
            audioEvent.Normalize = true;
            eventEnum.moveNext();
        }
    }
    trackEnum.moveNext();
}

 

Comments

snibchi1 wrote on 12/25/2016, 7:41 AM

Try this: https://www.vegascreativesoftware.info/de/forum/neue-scripts-und-updates--104731/

Audiovisuelle Geräte

  • Canon EOS 6D
  • Canon EOS 450D
  • Nicon Coolpix S7000
  • AC800 Actioncam
  • Sony HDR-SR5

Hardware-Ausstattung

  • Monitor: LG Ultrawide 34UC79G
  • Tastatur: MSI GK 50 Elite
  • Maus: Corsair M65 PRO RGB
  • Gehäuse: CooMas HAF X 942-KKN1 ATX
  • PSU: be quiet! Staight P11 850W
  • Board: MSI MEG X570 ACE (Bios 7C35 v 1.P0, 04.07.2024)
  • CPU: AMD Ryzen 9 3900x
  • Cooler: Noctua NH-D14 SE2011 (AMD Adapter)
  • RAM: 2x 16GB D432GB 3600-17 Predator K2 KHX
  • M_2.1: 1x 2TB Gigabyte GP-ASM2NE6200
  • M_2.2: 1x 1TB Gigabyte GP-ASM2NE6100
  • M_2.3: 1x 1TB Samsung SSD Pro 980
  • SSD: 1x 4TB SanDisk Ultra 3D
  • SSD: 1x 512GB Samsung 850 Pro
  • GPU: 1x 12GB MSI Radeon RX 6750 XT
  • NAS: Synology DS 218+ 2x 6TB

Software

  • Windows 11 64 Pro (24H2 Build 26100.3915)
  • MAGIX Vegas Suite 365 (Build 22.248)
  • MAGIX Photostory deluxe 2025 (V 24.0.1.204 (UDP3))
  • Sound Forge Pro 18
  • ACID Pro 11.0 (x64)
  • Music Maker 2025
  • ADOBE Master Suite CS6, CC