Automatic reload of plugin presets after parameter change

NoKi wrote on 5/29/2025, 6:24 AM

Hi,

I have a large number of media with media fx that share the same presets. Now, when I change the preset, I would like to update all plugins with new preset parameters (= reload the presets).

Is there a way to do this automatically for all media FX plugin instances and presets, or do I have to write a script for this? Maybe this script already exists?

Thanks,
Nils

Comments

zzzzzz9125 wrote on 5/29/2025, 6:49 AM

@NoKi Very simple. Just use a script like:

using ScriptPortal.Vegas;
namespace Test
{
    public class TestClass
    {
        public Vegas myVegas;
        public void Main(Vegas vegas)
        {
            myVegas = vegas;

            foreach (Media m in myVegas.Project.MediaPool)
            {
                foreach(Effect ef in m.Effects)
                {
                    ef.Preset = ef.CurrentPreset.Name;
                }
            }
        }
    }
}

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
        Test.TestClass test = new Test.TestClass();
        test.Main(vegas);
    }
}

 

Last changed by zzzzzz9125 on 5/29/2025, 6:51 AM, 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

Dexcon wrote on 5/29/2025, 7:13 AM

Another method that doesn't require a script is if all the video events that you want globally affected by the same FX preset are placed on the one video track and the FX is added as a track FX.

In Vegas Pro 22 (and VP21), this can also be achieved by using an Adjustment Track or an Adjustment Event so that FX preset changes affect all video events on lower tracks (though a bit different with an Adjustment Event).

Cameras: Sony FDR-AX100E; GoPro Hero 11 Black Creator Edition

Installed: Vegas Pro 15, 16, 17, 18, 19, 20, 21 & 22, HitFilm Pro 2021.3, DaVinci Resolve Studio 20, BCC 2025, Mocha Pro 2025.0, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX11 Advanced and many other iZ plugins, Vegasaur 4.0

Windows 11

Dell Alienware Aurora 11:

10th Gen Intel i9 10900KF - 10 cores (20 threads) - 3.7 to 5.3 GHz

NVIDIA GeForce RTX 2080 SUPER 8GB GDDR6 - liquid cooled

64GB RAM - Dual Channel HyperX FURY DDR4 XMP at 3200MHz

C drive: 2TB Samsung 990 PCIe 4.0 NVMe M.2 PCIe SSD

D: drive: 4TB Samsung 870 SATA SSD (used for media for editing current projects)

E: drive: 2TB Samsung 870 SATA SSD

F: drive: 6TB WD 7200 rpm Black HDD 3.5"

Dell Ultrasharp 32" 4K Color Calibrated Monitor

 

LAPTOP:

Dell Inspiron 5310 EVO 13.3"

i5-11320H CPU

C Drive: 1TB Corsair Gen4 NVMe M.2 2230 SSD (upgraded from the original 500 GB SSD)

Monitor is 2560 x 1600 @ 60 Hz

jetdv wrote on 5/29/2025, 7:14 AM

@zzzzzz9125, you should check to make sure it's the correct effect unless ALL effects have a preset by the same name.

NoKi wrote on 5/29/2025, 7:35 AM

@zzzzzz9125 Great! Saved me quite some time to figure out how to do it. I changed it to apply this to selected media only, but it works like a charm :-)
 

using System;
using ScriptPortal.Vegas;

public class EntryPoint
{
    public static Vegas myVegas;
    
    public void FromVegas(Vegas vegas)
    {
        myVegas = vegas;
        Media[] selectedMedia = myVegas.Project.MediaPool.GetSelectedMedia();
    
        foreach (Media media in selectedMedia)
        {
            foreach(Effect effect in media.Effects)
            {
                effect.Preset = effect.CurrentPreset.Name;
            }
        }        
    }    
}

@jetdv might make sense to make sure, only specific plugin presets are affected, will see...

@Dexcon unfortunately, I need the FX to be on media level as all track FX are removed when switching to multicamera mode.

Thanks,
NIls