Comments

JohnnyRoy wrote on 3/10/2017, 7:15 PM

Color Correction is Guid("d8a07b20-5dfe-41b9-a17d-e0c6cf711d2f")

Here are the Class ID's (GUID) for all of the DirectX Video plug-ins:

  • d8a07b20-5dfe-41b9-a17d-e0c6cf711d2f = Sony Color Corrector
  • 9193cc19-c0e6-4919-a832-5493df971ad8 = Sony Color Corrector (Secondary)
  • cc3eeb08-c381-4421-85df-4db84c10843d = Sony Bump Map
  • ba0529a7-3e80-4383-89d0-608a403e19da = Sony Chroma Blur
  • 739f404d-47fe-4bce-b05b-212f35ed455c = Sony White Balance
  • 83456b5e-8fa9-4b41-bd21-b996f8318321 = Sony Defocus
  • a6debbbb-05bd-49b3-a628-6211ffda08f7 = Sony Starburst
  • 929dbbc0-641e-4887-bb4e-1a0cc2697101 = Sony Rays
  • 56122d6b-4fd1-481a-8700-3f79603e2d1c = Sony Glint
  • 0065ed0e-1232-42bf-a455-133867ee9a4a = Sony Soft Contrast
  • d659478a-99ce-4ad5-9ef6-f6dd5170c0fb = Sony Fill Light
  • 0bc15b73-83b9-11d4-9f67-00485481bd31 = Sony Channel Blend
  • b3a8c4cf-e5ad-4b2f-a603-2f0fcb3b546e = Sony Swirl
  • c8e20570-4059-4edf-9cae-eef966df3b19 = Sony Pinch/Punch
  • 944dfde0-62cb-467d-bf49-05d4bc95be3b = Sony Spherize
  • d9a65ba3-0d06-11d2-9aac-00a0c99b12c5 = Sony Film Effects
  • 8d34624b-a300-45ff-a2ed-74fc9cb720c4 = Sony Glow
  • 9f96f056-9ebd-4880-b120-1292f7faff29 = Sony Mirror
  • 167aebed-32eb-4be1-bb4a-50595939ca8d = Sony Unsharp Mask
  • d74190dc-109b-11d3-bc43-00c04f6b803e = Sony Color Curves
  • f4205ab4-e8c1-468f-9ad2-4feb8df04538 = Sony Deform
  • 5911b14a-d65c-4820-aa01-630064f1a66d = Sony Convolution Kernel
  • 8dbe8301-d9a5-4fd5-8901-1d8bf4d3a6c0 = Sony Linear Blur
  • b6dee028-d0be-4a5a-8efc-8c53b39618f9 = Sony Radial Blur
  • 9cd51ee3-dad7-11d1-9aa8-00a0c99b12c5 = Sony Lens Flare
  • 7f6b9fb2-61d8-4d24-999b-405396b27769 = Sony Border
  • 1ef9e213-8361-48f6-9911-7221ed1dbc4a = Sony Light Rays
  • c3062bec-e69d-11d1-9aa9-00a0c99b12c5 = Sony Color Balance
  • 1c494fd1-be2b-48da-9273-5a004dc57ce8 = Sony Saturation Adjust
  • b892d510-9487-4022-b261-738123b55e47 = Sony TV Simulator
  • b78cbe2c-9292-4c7c-9682-5d8a71cc984b = Sony Film Grain
  • 300f2f5f-d7c7-48be-b796-90fc740b654e = Sony Gradient Map
  • f32240a5-0996-475c-973a-bfccf166e472 = Sony News Print
  • b1da9c5d-cf1a-11d1-9aa7-00a0c99b12c5 = Sony Quick Blur
  • 1485b954-eb62-11d1-9aa9-00a0c99b12c5 = Sony Gaussian Blur
  • ec9c4a02-e360-11d1-9aa9-00a0c99b12c5 = Sony Brightness and Contrast
  • e87674d5-e8f2-11d1-9aa9-00a0c99b12c5 = Sony Black and White
  • b432972d-e08d-11d2-bf8a-006097c9ebf7 = Sony HSL Adjust
  • c3062be7-e69d-11d1-9aa9-00a0c99b12c5 = Sony Invert
  • e87674d3-e8f2-11d1-9aa9-00a0c99b12c5 = Sony Levels
  • 99aff570-6f9a-11d3-a105-00c04f6b803e = Sony Mask Generator
  • 03eebbf5-007d-11d2-9aa9-00a0c99b12c5 = Sony Min and Max
  • ed4cf668-e9a7-11d1-9aa9-00a0c99b12c5 = Sony Add Noise
  • 9f5dfb77-d09a-11d1-9aa7-00a0c99b12c5 = Sony Pixelate
  • 7f21572f-453a-11d3-80a7-00c04f60c0fa = Sony Sepia
  • ecfe0463-09e4-11d2-9aab-00a0c99b12c5 = Sony Sharpen
  • c3062be8-e69d-11d1-9aa9-00a0c99b12c5 = Sony Threshold
  • ec1a2314-0c38-11d2-9aac-00a0c99b12c5 = Sony Wave
  • 0786eb45-c120-11d2-a52f-00c04f8edc2d = Sony Chroma Keyer
  • b1da9c61-cf1a-11d1-9aa7-00a0c99b12c5 = Sony Median
  • a4f42967-1e7c-4cf3-a7dd-840cd0a5599e = Sony (Legacy Plug-In) Broadcast Colors
  • d76643c7-95bd-4519-9718-4115c692ea7d = Sony Cookie Cutter
  • 1a3ca492-f45c-492b-9fc4-91bb6b59e13d = Sony Black Restore
  • 2869bb94-4971-4ccc-94ca-743666a85938 = Sony Timecode
  • b85ce073-5207-4479-8279-de28f19197d9 = Sony Broadcast Colors

Enjoy,

~jr

jetdv wrote on 3/11/2017, 10:23 AM

ReadGUID.cs - will read and send all GUID's on your system to a file.

 

using System;
using System.IO;
using System.Text;
using System.Drawing;
using System.Reflection;
using System.Diagnostics;
using System.Collections;
using System.Windows.Forms;
using System.ComponentModel;
using System.Runtime.InteropServices;
using Microsoft.Win32;
using Sony.Vegas;

public class EntryPoint
{
    Vegas myVegas;
    
    public void FromVegas(Vegas vegas)
    {
        myVegas = vegas;

    FileStream inis = new FileStream("C:\\EffectsGUID.txt", FileMode.OpenOrCreate); //Change this to a good path to save
    StreamWriter iniw = new StreamWriter(inis);

    foreach (PlugInNode fx in myVegas.AudioFX) 
    {
        try
        {
            string s = fx.Name + " - " + fx.ClassID;
            string t = "";
            bool badfx = false;
            if (fx.Name.Length > 10)
            {
                if (fx.Name.Substring(0,10) == "aaVidScope")
                {
                    badfx = true;
                }
            }

            if (fx.IsAudio && (!(fx.IsContainer)) && (!(fx.IsPackage)) && (!(badfx))) 
            {
                try 
                {
                    int cnt = 0;
                    foreach (EffectPreset mypreset in fx.Presets) 
                    {
                        try
                        {
                            cnt++;
                            t = s + " - ";
                            t += mypreset.Name + " - " + cnt;
                            iniw.WriteLine(t);
                        } 
                        catch
                        {
                        }
                    }
                } 
                catch 
                {
                }
            }
        }
        catch
        {
        }
    }


    foreach (PlugInNode fx in myVegas.VideoFX) 
    {
                string s = fx.Name + " - " + fx.ClassID + " UID: " + fx.UniqueID + "  isOFX: " + fx.IsOFX;

        string t = "";
        int cnt2 = 0;
        foreach (EffectPreset mypreset in fx.Presets) 
        {
            try 
            {
                cnt2++;
                t = s + " - ";
                t += mypreset.Name + " - " + cnt2;
                iniw.WriteLine(t);
            } 
            catch
            {
            }
        }
    }


    foreach (PlugInNode fx in myVegas.Generators) 
    {
                string s = fx.Name + " - " + fx.ClassID + " UID: " + fx.UniqueID + "  isOFX: " + fx.IsOFX;

        string t = "";
        int cnt2 = 0;
        foreach (EffectPreset mypreset in fx.Presets) 
        {
            try 
            {
                cnt2++;
                t = s + " - ";
                t += mypreset.Name + " - " + cnt2;
                iniw.WriteLine(t);
            } 
            catch
            {
            }
        }
    }

    foreach (Renderer renderer in myVegas.Renderers) 
    {
renderer.FileTypeName + " - " + renderer.Name + " - " + renderer.ClassID);
        string s = renderer.FileExtension + " - " + renderer.FileTypeName + " - " + renderer.ClassID;
        iniw.WriteLine(s);
    }

    iniw.Close();
    inis.Close();
MessageBox.Show("Done");
    }
    
}

Matesaktesak wrote on 12/19/2017, 11:56 AM

This was just so helpful! Thank you! 👍

Also, when I was starting with scripting I had problem with finding the functions so there is a link to download scripting documentation: http://www.vegascreativesoftware.com/us/downloads/#c24726

michael-harrison wrote on 5/17/2020, 11:14 AM

@jetdv do you know if that script works in VP 17? There were several syntax errors but the last problem I'm encountering is on

renderer.FileTypeName + " - " + renderer.Name + " - " + renderer.ClassID;

where the ClassID prop doesn't seem to exist and I can't find it in the latest documentation

System 1:

Windows 10
i9-10850K 10 Core
128.0G RAM
Nvidia RTX 3060 Studio driver [most likely latest]
Resolution        3840 x 2160 x 60 hertz
Video Memory 12G GDDR5

 

System 2:

Lenovo Yoga 720
Core i7-7700 2.8Ghz quad core, 8 logical
16G ram
Intel HD 630 gpu 1G vram
Nvidia GTX 1050 gpu 2G vram

 

jetdv wrote on 5/17/2020, 4:36 PM

As it says "using Sony.Vegas;", it is designed for versions up to 13. However, change that line to "using ScriptPortal.Vegas;" and you should be good to go. The script as I listed it above worked on my system. "renderer" does have a "ClassID". Here's an example of the output of that script when run on Vegas Pro 13 (the last version it was designed to work with):

Sony Chroma Blur - ba0529a7-3e80-4383-89d0-608a403e19da UID: {BA0529A7-3E80-4383-89D0-608A403E19DA}  isOFX: False - Reset to None - 1
Sony Chroma Blur - ba0529a7-3e80-4383-89d0-608a403e19da UID: {BA0529A7-3E80-4383-89D0-608A403E19DA}  isOFX: False - Light Blur - 2
Sony Chroma Blur - ba0529a7-3e80-4383-89d0-608a403e19da UID: {BA0529A7-3E80-4383-89D0-608A403E19DA}  isOFX: False - Medium Blur - 3
Sony Chroma Blur - ba0529a7-3e80-4383-89d0-608a403e19da UID: {BA0529A7-3E80-4383-89D0-608A403E19DA}  isOFX: False - Maximum Blur - 4
Sony Rays - 929dbbc0-641e-4887-bb4e-1a0cc2697101 UID: {929DBBC0-641E-4887-BB4E-1A0CC2697101}  isOFX: False - Luminance - 1
Sony Rays - 929dbbc0-641e-4887-bb4e-1a0cc2697101 UID: {929DBBC0-641E-4887-BB4E-1A0CC2697101}  isOFX: False - Alpha - 2
Sony Glint - 56122d6b-4fd1-481a-8700-3f79603e2d1c UID: {56122D6B-4FD1-481A-8700-3F79603E2D1C}  isOFX: False - Sparkle - 1
Sony Glint - 56122d6b-4fd1-481a-8700-3f79603e2d1c UID: {56122D6B-4FD1-481A-8700-3F79603E2D1C}  isOFX: False - Center Mask, Glint - 2
Sony Soft Contrast - 0065ed0e-1232-42bf-a455-133867ee9a4a UID: {0065ED0E-1232-42BF-A455-133867EE9A4A}  isOFX: False - Soft Moderate Contrast - 1
Sony Soft Contrast - 0065ed0e-1232-42bf-a455-133867ee9a4a UID: {0065ED0E-1232-42BF-A455-133867EE9A4A}  isOFX: False - Heavy Contrast - 2
Sony Soft Contrast - 0065ed0e-1232-42bf-a455-133867ee9a4a UID: {0065ED0E-1232-42BF-A455-133867EE9A4A}  isOFX: False - Warm Vignette - 3
Sony Channel Blend - 0bc15b73-83b9-11d4-9f67-00485481bd31 UID: {0BC15B73-83B9-11D4-9F67-00485481BD31}  isOFX: False - (Default) - 1
Sony Channel Blend - 0bc15b73-83b9-11d4-9f67-00485481bd31 UID: {0BC15B73-83B9-11D4-9F67-00485481BD31}  isOFX: False - Distribute Red Channel - 2
Sony Channel Blend - 0bc15b73-83b9-11d4-9f67-00485481bd31 UID: {0BC15B73-83B9-11D4-9F67-00485481BD31}  isOFX: False - Distribute Green Channel - 3
Sony Channel Blend - 0bc15b73-83b9-11d4-9f67-00485481bd31 UID: {0BC15B73-83B9-11D4-9F67-00485481BD31}  isOFX: False - Distribute Blue Channel - 4
Sony Channel Blend - 0bc15b73-83b9-11d4-9f67-00485481bd31 UID: {0BC15B73-83B9-11D4-9F67-00485481BD31}  isOFX: False - Red Only - 5
Sony Channel Blend - 0bc15b73-83b9-11d4-9f67-00485481bd31 UID: {0BC15B73-83B9-11D4-9F67-00485481BD31}  isOFX: False - Green Only - 6
Sony Channel Blend - 0bc15b73-83b9-11d4-9f67-00485481bd31 UID: {0BC15B73-83B9-11D4-9F67-00485481BD31}  isOFX: False - Blue Only - 7
Sony Channel Blend - 0bc15b73-83b9-11d4-9f67-00485481bd31 UID: {0BC15B73-83B9-11D4-9F67-00485481BD31}  isOFX: False - Grayscale - 8
Sony Channel Blend - 0bc15b73-83b9-11d4-9f67-00485481bd31 UID: {0BC15B73-83B9-11D4-9F67-00485481BD31}  isOFX: False - RGB to BGR - 9

 

 

Here's my updated version for Vegas Pro 14+


 

using System;
using System.IO;
using System.Text;
using System.Drawing;
using System.Reflection;
using System.Diagnostics;
using System.Collections;
using System.Windows.Forms;
using System.ComponentModel;
using System.Runtime.InteropServices;
using Microsoft.Win32;
//using Sony.Vegas;
using ScriptPortal.Vegas;

public class EntryPoint
{
    Vegas myVegas;
    
    public void FromVegas(Vegas vegas)
    {
        myVegas = vegas;

    FileStream inis = new FileStream("C:\\Users\\Edward Troxel\\Documents\\Scripts\\ByEdward\\EffectsGUID.txt", FileMode.OpenOrCreate);
    StreamWriter iniw = new StreamWriter(inis);

//    MessageBox.Show("Checking Audio FX");
    foreach (PlugInNode fx in myVegas.AudioFX)
    {
        try
        {
            string s = fx.Name + " - " + fx.ClassID;
            string t = "";
            bool badfx = false;
            if (fx.Name.Length > 10)
            {
                if (fx.Name.Substring(0,10) == "aaVidScope")
                {
                    badfx = true;
                }
            }

            if (fx.IsAudio && (!(fx.IsContainer)) && (!(fx.IsPackage)) && (!(badfx)))
            {
                try
                {
                    int cnt = 0;
                    foreach (EffectPreset mypreset in fx.Presets)
                    {
                        try
                        {
                            cnt++;
                            t = s + " - ";
                            t += mypreset.Name + " - " + cnt;
                            iniw.WriteLine(t);
                        }
                        catch
                        {
                        }
                    }
//                    MessageBox.Show(s);
                }
                catch
                {
                }
            }
//        MessageBox.Show(s);
        }
        catch
        {
        }
    }


//    MessageBox.Show("Checking Video FX");
    foreach (PlugInNode fx in myVegas.VideoFX)
    {
                string s = fx.Name + " - " + fx.ClassID + " UID: " + fx.UniqueID + "  isOFX: " + fx.IsOFX;

        string t = "";
        int cnt2 = 0;
        foreach (EffectPreset mypreset in fx.Presets)
        {
            try
            {
                cnt2++;
                t = s + " - ";
                t += mypreset.Name + " - " + cnt2;
                iniw.WriteLine(t);
            }
            catch
            {
            }
        }
//        MessageBox.Show(s);
    }


//    MessageBox.Show("Checking Generators");
    foreach (PlugInNode fx in myVegas.Generators)
    {
                string s = fx.Name + " - " + fx.ClassID + " UID: " + fx.UniqueID + "  isOFX: " + fx.IsOFX;

        string t = "";
        int cnt2 = 0;
        foreach (EffectPreset mypreset in fx.Presets)
        {
            try
            {
                cnt2++;
                t = s + " - ";
                t += mypreset.Name + " - " + cnt2;
                iniw.WriteLine(t);
            }
            catch
            {
            }
        }
//        MessageBox.Show(s);
    }

    foreach (Renderer renderer in myVegas.Renderers)
    {
//        MessageBox.Show(renderer.ID + " - " + renderer.FileExtension + " - " + renderer.FileTypeName + " - " + renderer.Name + " - " + renderer.ClassID);
        string s = renderer.FileExtension + " - " + renderer.FileTypeName + " - " + renderer.ClassID;
        iniw.WriteLine(s);
    }

    iniw.Close();
    inis.Close();
MessageBox.Show("Done");
    }
    
}

I just tested this script and it ran fine in Vegas Pro 17. I would have uploaded the results but, apparently, text files are not allowed...

jetdv wrote on 5/17/2020, 4:38 PM

Naturally, you'll need to change "FileStream inis = new FileStream("C:\\Users\\Edward Troxel\\Documents\\Scripts\\ByEdward\\EffectsGUID.txt", FileMode.OpenOrCreate);" to be a valid path on your machine.

michael-harrison wrote on 5/25/2020, 1:07 AM

@jetdv

Thanks. Only just now saw the replies. I'll reply back once I have a chance to run this on my system.

System 1:

Windows 10
i9-10850K 10 Core
128.0G RAM
Nvidia RTX 3060 Studio driver [most likely latest]
Resolution        3840 x 2160 x 60 hertz
Video Memory 12G GDDR5

 

System 2:

Lenovo Yoga 720
Core i7-7700 2.8Ghz quad core, 8 logical
16G ram
Intel HD 630 gpu 1G vram
Nvidia GTX 1050 gpu 2G vram

 

michael-harrison wrote on 5/25/2020, 10:53 AM

@jetdv Worked fine, thanks!

System 1:

Windows 10
i9-10850K 10 Core
128.0G RAM
Nvidia RTX 3060 Studio driver [most likely latest]
Resolution        3840 x 2160 x 60 hertz
Video Memory 12G GDDR5

 

System 2:

Lenovo Yoga 720
Core i7-7700 2.8Ghz quad core, 8 logical
16G ram
Intel HD 630 gpu 1G vram
Nvidia GTX 1050 gpu 2G vram