C# scripts that worked in Vegas 14 don't work in 15

RogFromTheGarage wrote on 9/22/2017, 7:39 AM

I wrote a compiled script DLL for for Vegas 14 that contained several scripts in the same DLL. I just upgraded to Vegas 15 and it seems that my old code is not being recognized as a valid DLL. I can't hit any breakpoints and get an error when I try to run something. I found some articles talking about VSA versus CodeDOM. I added a method called EntryPoint to my code, which does the "Hello World" pop-up and it works. But, I am not getting any breakpoints anywhere else. Seems like I am using the wrong architecture/programming model.

Below is my old code that does not run (except for the added EntryPoint method). What am I missing?

using ScriptPortal.Vegas;

namespace RogerVegas
{
   public class RogerVegasModule : ICustomCommandModule
   {

      protected Vegas vegas = null;
      String outputFilePath = @"d:\videos\India";

      enum RenderMode
      {
         Project = 0,
         Selection,
         Regions,
      }

      public class EntryPoint
      {
         public void FromVegas(Vegas vegas)
         {
            MessageBox.Show("hello world");
         }
      }

      public void InitializeModule(Vegas _vegas) {
         vegas = _vegas;
      }

      public ICollection GetCustomCommands()
      {
         CustomCommand cmdOverlayAll = new CustomCommand(CommandCategory.Tools, "Overlay Events");
         cmdOverlayAll.DisplayName = "Overlay Events";
         cmdOverlayAll.Invoked += this.hndOverlayEvents;

...(more code follows, but not important for post)

Comments

Satevis wrote on 9/23/2017, 2:09 AM

You may be mixing two different concepts here: ICustomCommandModule is related to extensions whereas EntryPoint.FromVegas is used for scripts. If your FromVegas method gets called, then you may have placed your file in a script menu location and invoked it from the menu rather than placing it in a directory that VEGAS scans for extensions. Try putting the file in [My Documents]\Vegas Application Extensions and see if that changes anything.

RogFromTheGarage wrote on 9/25/2017, 5:08 AM

Makes sense. I will try that. Thank you very, very much.