So, what is 220? It is the maximum count of all custom commands and scripts that Vegas can display and use! What does it mean? For example, if i have a big script collection and some scripting plugins installed (UltimateS, Excalibur...) there is high probability that some scripts/commands will not be used!
Here is the command module that you can compile and install. After installing run Vegas and go to the Tools-Scripting menu ;)
Here is the command module that you can compile and install. After installing run Vegas and go to the Tools-Scripting menu ;)
using System.Collections;
using System.Collections.Generic;
using Sony.Vegas;
public class MyModule : ICustomCommandModule
{
public ICollection GetCustomCommands()
{
int counter = 0;
List<CustomCommand> Commands = new List<CustomCommand>();
for (int i = 1; i <= 50; i++)
{
CustomCommand cmd1 = new CustomCommand (CommandCategory.Tools, "Command #" + (++counter).ToString("0000"));
Commands.Add(cmd1);
for (int j = 1; j <= 10; j++)
{
CustomCommand cmd2 = new CustomCommand(CommandCategory.Tools, "Command #" + (++counter).ToString("0000"));
cmd1.AddChild(cmd2);
}
}
return Commands;
}
public void InitializeModule(Vegas vegas)
{
}
}