📝⚙️ (Script) Vegas Text To PNG Image?

m3lquixd wrote on 1/13/2023, 4:14 PM

Is there any way or any script that you know of that can turn vegas text into png images? Something that I could replace all the text media in the project media with images and replace it in the timaline as well? I don't know if I made myself clear...

Last changed by m3lquixd

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

Comments

3d87c4 wrote on 1/13/2023, 5:35 PM

Have you tried rendering a short text clip as an image sequence? There is a png option, but I don't know whether the alpha channel transparency is rendered.

Del XPS 17 laptop

Processor    13th Gen Intel(R) Core(TM) i9-13900H   2.60 GHz
Installed RAM    32.0 GB (31.7 GB usable)
System type    64-bit operating system, x64-based processor
Pen and touch    Touch support with 10 touch points

Edition    Windows 11 Pro
Version    22H2
Installed on    ‎6/‎8/‎2023
OS build    22621.1848
Experience    Windows Feature Experience Pack 1000.22642.1000.0

NVIDIA GeForce RTX 4070 Laptop GPU
Driver Version: 31.0.15.2857
8GB memory
 

MikeS wrote on 1/13/2023, 5:38 PM

Sure. Above the preview window is a 'Save Snapshot to File" option. Does exactly what it says - snapshots whatever is visible in the preview window as either png or jpg, and as a bonus sticks a copy into Project Media. The png maintains alpha channel

Last changed by MikeS on 1/13/2023, 5:40 PM, changed a total of 1 times.

Vegas Post 21 Build 300
Boris FX Continuum for OFX 2024 Build 17.0.3.380
Boris FX Mocha Pro Plug-in 2022.5 v11.0.1 Build 13
Windows 10 Pro - 64-Bit
ASUS PRIME Z890-P motherboard
Intel Core i7-97000K @ 3.6GHz
RAM 32GB (2x 16GB) 2666MHz DDR4
GeForce RTX 2070 SUPER

m3lquixd wrote on 1/13/2023, 5:56 PM

Sure. Above the preview window is a 'Save Snapshot to File" option. Does exactly what it says - snapshots whatever is visible in the preview window as either png or jpg, and as a bonus sticks a copy into Project Media. The png maintains alpha channel

I know that, lol. I'm talking about transforming all texts straight from project media.

Saving a snapshot. First, I'll have to disable the tracks that have an event. I'll have to save one by one. And the main problem, if the text has some modification in the pan/crop for example? It will not work. The way I wanted it was to automatically save and replace text media from project media. As a consequence, also replacing the timeline.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

m3lquixd wrote on 1/13/2023, 5:58 PM

I think there's really no way to do what I want. The only way is if vegas itself had this function... But it's not something useful for all users. It's something very specific.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

m3lquixd wrote on 1/13/2023, 5:58 PM

I don't know if there's any way to do this through script. I don't know anything about scripts.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

jetdv wrote on 1/13/2023, 7:02 PM

@m3lquixd, yes there's a way to do it via a script... I have several tutorials but you'd need to combine a couple to get the exact results you're wanting.

Jeditpro wrote on 1/13/2023, 8:01 PM

The tools of the Vegasaur can do that. But it is a paid extension. https://vegasaur.com/Vegasaur

I made a little video showing how to do it using Vegasaur

FayFen wrote on 1/14/2023, 1:42 AM

I'll say that my other NLE (VideoStudio) has Text2PNG feature for 4-5 years. I used it often as the titler there is better then VP's .

3POINT wrote on 1/14/2023, 2:07 AM

Is there any way or any script that you know of that can turn vegas text into png images? Something that I could replace all the text media in the project media with images and replace it in the timaline as well? I don't know if I made myself clear...

@m3lquixd could you explain what would be the advantage of having a text.png instead. I see only disadvantages.

Musicvid wrote on 1/14/2023, 5:10 AM

I create my custom titles in Photoshop. Quality is often superior.

m3lquixd wrote on 1/14/2023, 5:28 AM

The tools of the Vegasaur can do that. But it is a paid extension. https://vegasaur.com/Vegasaur

I made a little video showing how to do it using Vegasaur

Very interesting!

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

m3lquixd wrote on 1/14/2023, 5:29 AM

I create my custom titles in Photoshop. Quality is often superior.

Me too. This is exactly why I need this feature.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

m3lquixd wrote on 1/14/2023, 5:34 AM

@m3lquixd, yes there's a way to do it via a script... I have several tutorials but you'd need to combine a couple to get the exact results you're wanting.

I need to stop someday to study script. Because my forte is just editing lol.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

3POINT wrote on 1/14/2023, 5:50 AM

I create my custom titles in Photoshop. Quality is often superior.

Me too. This is exactly why I need this feature.

Maybe for static titles, I still prefer to create titles with animation, for this reason I still use the Protitler in Vegas.

m3lquixd wrote on 1/14/2023, 5:52 AM

@3POINT Yes!

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

3POINT wrote on 1/14/2023, 6:09 AM

@3POINT Yes!

What's the difference between a static Title generated by Vegas and a .png of that Title?

m3lquixd wrote on 1/14/2023, 6:13 AM

@3POINT Yes!

What's the difference between a static Title generated by Vegas and a .png of that Title?

I'll explain exactly why I need this, it might even be better for you guys to have an idea.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

Dexcon wrote on 1/14/2023, 6:18 AM

I'll explain exactly why I need this, it might even be better for you guys to have an idea.

That's the second time you've responded with that. Hopefully, your explanation will be posted sooner rather than later. Surely the explanation can't be all that complicated.

Last changed by Dexcon on 1/14/2023, 6:57 AM, changed a total of 1 times.

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

Installed: Vegas Pro 16, 17, 18, 19, 20 & 21, HitFilm Pro 2021.3, DaVinci Resolve Studio 18.5, BCC 2023.5, Mocha Pro 2023, Ignite Pro, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX10 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

3POINT wrote on 1/14/2023, 6:21 AM

@3POINT Yes!

What's the difference between a static Title generated by Vegas and a .png of that Title?

I'll explain exactly why I need this, it might even be better for you guys to have an idea.

When will you explain? I'm spilling my time supporting you, I'm out. Bye...

Last changed by 3POINT on 1/14/2023, 8:22 AM, changed a total of 1 times.

3POINT, Theo Houben, Vegasuser since version 5 and co-founder and moderator of the Dutch Vegasforum https://www.vegas-videoforum.nl/index.php

Recware: DJI Osmo Pocket/Mavic Mini, GoproHero7Black, PanasonicFZ300/HCX909.

Software: Vegaspro365+Vegasaur, PowerDirector365, Davinci Resolve 18

Hardware: i910900k, 32GB, GTX2080super, 2x1920x1200 display

Playware: Samsung Qled QE65Q6FN, Philips 55PFL7108

m3lquixd wrote on 1/14/2023, 8:59 AM

@Dexcon @3POINT I went to eat. And now I just recorded a 38 minute video showing my situation. I will edit it. Don't worry, the final video won't even last 5 minutes.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

jetdv wrote on 1/14/2023, 9:24 AM

@m3lquixd Ok, take this script and save it as "Save All Event Images.cs" into [My Documents]\Vegas Script Menu

Then open VEGAS, select the track with the titles on it, and run this script (after you modify one line described below):
 

using ScriptPortal.Vegas;

namespace Test_Script
{
    public class Class1
    {
        public Vegas myVegas;

        public void Main(Vegas vegas)
        {
            myVegas = vegas;

            VideoRenderQuality origPreviewRenderQuality = myVegas.Project.Preview.RenderQuality;
            bool origPreviewFillSize = myVegas.Project.Preview.FullSize;
            VideoFieldOrder origFieldOrder = myVegas.Project.Video.FieldOrder;
            VideoDeinterlaceMethod origProjectDeinterlaceMethod = myVegas.Project.Video.DeinterlaceMethod;

            myVegas.Project.Preview.RenderQuality = VideoRenderQuality.Best;
            myVegas.Project.Preview.FullSize = true;
            myVegas.Project.Video.FieldOrder = VideoFieldOrder.ProgressiveScan;
            myVegas.Project.Video.DeinterlaceMethod = VideoDeinterlaceMethod.InterpolateFields;

            foreach (Track myTrack in myVegas.Project.Tracks)
            {
                if (myTrack.Selected && myTrack.IsVideo())
                {
                    foreach(TrackEvent evnt in myTrack.Events)
                    {
                        myVegas.Transport.CursorPosition = evnt.Start + Timecode.FromFrames(evnt.Length.FrameCount / 2);
                        myVegas.UpdateUI();

                        string FullFileName = "D:\\VidTemp\\Track" + (myTrack.Index + 1) + " Event" + (evnt.Index + 1)+ ".png";
                        if (myVegas.SaveSnapshot(FullFileName, ImageFileFormat.PNG, myVegas.Transport.CursorPosition) == RenderStatus.Complete)
                        {
                            myVegas.UpdateUI();
                        }
                    }
                }
            }

            myVegas.Project.Preview.RenderQuality = origPreviewRenderQuality;
            myVegas.Project.Preview.FullSize = origPreviewFillSize;
            myVegas.Project.Video.FieldOrder = origFieldOrder;
            myVegas.Project.Video.DeinterlaceMethod = origProjectDeinterlaceMethod;
        }
    }
}

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

This line will need to be changed:

string FullFileName = "D:\\VidTemp\\Track" + (myTrack.Index + 1) + " Event" + (evnt.Index + 1)+ ".png";

Right now I have it pointing to D:\VidTemp. You need to change that to point to the drive and folder of your choice.

Then the files are being named "Track1 Event1.png", "Track1 Event2.png", etc... You have not said how the names are supposed to be known so this was an easy way to just get all of the events created and then you'd have to rename them.

Often markers are placed on the timeline where you want snapshots taken and then the marker label could contain the file name and it would simply need to go through the list of markers instead of looking for selected video tracks.

To run the script, in VEGAS go to Tools - Scripting - Save All Event Images.cs

FayFen wrote on 1/14/2023, 11:44 AM

@jetdv 👍 it works💎

m3lquixd wrote on 1/14/2023, 12:37 PM

@jetdv I tested it here and your script worked, but it's not what I need, I'm preparing a video here to explain exactly what it is. I know this long wait seems like a mystery, but it's because I'm reconciling it with other commitments.
But congrats on the script!

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

jetdv wrote on 1/14/2023, 12:49 PM

It creates the images. It does NOT replace the text media with the images (I didn't notice that before but did now that I re-read the first post). This version will add the image as a new TAKE on the text event so you can swap between the text or the image. I think you'll come to like scripts once you realize exactly what they can do. I've written many custom scripts for people and also have my main script here:

http://www.jetdv.com/excalibur-vegas/

using ScriptPortal.Vegas;

namespace Test_Script
{
    public class Class1
    {
        public Vegas myVegas;

        public void Main(Vegas vegas)
        {
            myVegas = vegas;

            VideoRenderQuality origPreviewRenderQuality = myVegas.Project.Preview.RenderQuality;
            bool origPreviewFillSize = myVegas.Project.Preview.FullSize;
            VideoFieldOrder origFieldOrder = myVegas.Project.Video.FieldOrder;
            VideoDeinterlaceMethod origProjectDeinterlaceMethod = myVegas.Project.Video.DeinterlaceMethod;

            myVegas.Project.Preview.RenderQuality = VideoRenderQuality.Best;
            myVegas.Project.Preview.FullSize = true;
            myVegas.Project.Video.FieldOrder = VideoFieldOrder.ProgressiveScan;
            myVegas.Project.Video.DeinterlaceMethod = VideoDeinterlaceMethod.InterpolateFields;

            foreach (Track myTrack in myVegas.Project.Tracks)
            {
                if (myTrack.Selected && myTrack.IsVideo())
                {
                    foreach (TrackEvent evnt in myTrack.Events)
                    {
                        myVegas.Transport.CursorPosition = evnt.Start + Timecode.FromFrames(evnt.Length.FrameCount / 2);
                        myVegas.UpdateUI();

                        string FullFileName = "D:\\VidTemp\\Track" + (myTrack.Index + 1) + " Event" + (evnt.Index + 1) + ".png";
                        if (myVegas.SaveSnapshot(FullFileName, ImageFileFormat.PNG, myVegas.Transport.CursorPosition) == RenderStatus.Complete)
                        {
                            VideoEvent vEvent = (VideoEvent)evnt;
                            Media mymedia = new Media(FullFileName);
                            MediaStream stream = mymedia.Streams.GetItemByMediaType(MediaType.Video, 0);
                            Take myNewTake = new Take(stream);
                            vEvent.Takes.Add(myNewTake);

                            myVegas.UpdateUI();
                        }
                    }
                }
            }

            myVegas.Project.Preview.RenderQuality = origPreviewRenderQuality;
            myVegas.Project.Preview.FullSize = origPreviewFillSize;
            myVegas.Project.Video.FieldOrder = origFieldOrder;
            myVegas.Project.Video.DeinterlaceMethod = origProjectDeinterlaceMethod;
        }
    }
}

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