Forum Replies Created

Page 10 of 459
  • Delete the effect off of the track, Right-click the track header, and then choose “Set Default Track Properties”. The next time you add a video track it should no longer have that effect automatically added.

  • Edward Troxel

    January 5, 2021 at 11:38 pm in reply to: Regions saved in file not showing up on a new laptop

    Did you copy the .sfl file over with the original file? The marker information is typically stored in a separate file.

  • Glad I could help. With a slight change replacing this line:

    myTrack = myVegas.Project.Tracks[0]; // just take the “top” track for now.

    to something more powerful, it can actually add it to the first “selected” track instead of just the top track.

    foreach (Track track in myVegas.Project.Tracks)
    {
    if (track.Selected)
    {
    myTrack = track;
    break;
    }
    }


    Then you can just select the desired track and not have to drag it down to the desired track.

  • Copy it over to notepad and make sure all of the ” (quote marks) are plain quotes and not the curly quotes used by Word and other word processors. You’ll need to make sure the project has at least one video track and that the top track is a video track. This will add a 1 second white generated media at the cursor position that is one second long. If you need a different track, you’ll have to modify the code to find the correct track. I saved it as “AddGenMedia.cs” and it ran on my Vegas Pro 18.

  • As I said, you would need code that determined “start”, “length”, and “myTrack”. Here’s a fully functional version:

    //—————————————-
    using ScriptPortal.Vegas;

    public class EntryPoint
    {
    Vegas myVegas;

    public void FromVegas(Vegas vegas)
    {
    myVegas = vegas;
    Track myTrack = null;
    if (myVegas.Project.Tracks.Count > 0)
    {
    myTrack = myVegas.Project.Tracks[0]; // just take the “top” track for now.
    }

    if (myTrack != null) // if there was a track
    {
    Timecode start = myVegas.Transport.CursorPosition; // put it at the cursor position
    Timecode length = new Timecode(“00:00:01:00”); // make it 1 second long

    //Add the Generated Media
    string GenMed = “{Svfx:com.vegascreativesoftware:solidcolor}”; //Magix Solid Color

    Media media = CreateGeneratedMedia(GenMed, “White”);

    MediaStream stream = media.Streams[0] as MediaStream;
    VideoEvent newEvent = new VideoEvent(start, length);
    myTrack.Events.Add(newEvent);
    Take take = new Take(stream);
    newEvent.Takes.Add(take);
    }
    }

    public Media CreateGeneratedMedia(string generatorName, string presetName)
    {
    PlugInNode generator = myVegas.Generators.GetChildByUniqueID(generatorName);
    Media media = new Media(generator, presetName);
    if (!media.IsValid())
    {
    //MessageBox.Show(“failed to create media; ” + generatorName + ” (” + presetName + “)”);
    }
    return media;
    }

    }
    //—————————————-

  • Here’s the code snippet to add a generated media:

    //Add the Generated Media
    string GenMed = “{Svfx:com.vegascreativesoftware:solidcolor}”; //Magix Solid Color

    Media media = common.CreateGeneratedMedia(GenMed, “White”);

    MediaStream stream = media.Streams[0] as MediaStream;
    VideoEvent newEvent = new VideoEvent(start, length);
    myTrack.Events.Add(newEvent);
    Take take = new Take(stream);
    newEvent.Takes.Add(take);

    So, you would need code that determined “start”, “length”, and “myTrack”. Then just add the above code and it will be added on track “myTrack” starting at “start” for a total length of “length”. And you could modify the “CreateGeneratedMedia” line to specify a different color or even change that to a variable. but the above code will do the actual adding of the solid color generated media to the specified track.

  • The only way I can think of to do exactly what you want would be using a script.

  • Create a selection area, right-click the track in that selection area, Insert the new generated media from the pop-up menu, and it should be the length of the selection area.

  • Edward Troxel

    December 7, 2020 at 8:35 pm in reply to: Can I combine DVDs?

    Excalibur will work from versions 8 – 18 (depending on the version installed). The newest version is for versions 14 – 18 of Vegas. The newest version is version 6. You can see the current information on my website.

  • Edward Troxel

    November 3, 2020 at 9:13 pm in reply to: Sony vegas pro 17 interlance

    There is no “Sony Vegas Pro 17″… VEGAS has been owned by Magix for over 5 years since version 13…

Page 10 of 459

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy