Why 220?

altarvic wrote on 12/26/2008, 11:00 PM
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 ;)


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)
{
}
}


Comments

jetdv wrote on 12/27/2008, 6:54 AM
Is it 220 total? Or 220 for Tools, 220 for Edit, 220 for View? Don't have time for testing right now but wondered if that might make a difference?
johnmeyer wrote on 12/27/2008, 12:06 PM
I just did a quick test in 7.0d. I have Excalibur installed and it has all sorts of presets for camera angles, etc. I never realized that they "count" as part of the limit, but it makes sense now. I have a huge collection of scripts, both the in the main script folder, as well as a subfolder. I just counted all the items used in Excalibur, and all of the scripts, up until the point that the scripts don't display. I didn't spend much time, so my count is not exact, but I got to 210, so I think it confirms your number. When I got in the middle of the scripts that begin with "R," Vegas didn't display any more scripts beyond that point.

This limit has been there since scripts were introduced, but used to be much, much smaller (about 50). It isn't a problem for most people unless they have one of the commercial scripts installed and it is only a problem then if they have (like I do) a huge number of additional scripts.

I should probably put all the ones I never use into a zip file so I can access the ones I do use.

Now I need to find out why my 5.1 surround project is flat-lining the audio from a nested VEG ...
fausseplanete wrote on 12/27/2008, 4:22 PM
I noticed something like that when I upgraded from Vegas 7 to 8:

http://www.sonycreativesoftware.com/forums/ShowMessage.asp?Forum=4&MessageID=571498

(I'll add a link from there to here now, just don't keep following them!)