creating a list of all available vst plugins

greg kellum's icon

Hi,

I am trying to create a pluggo plugin that allows one to select a particular VST plugin out of a list and schedule it to be run over the incoming audio streams in quick bursts. But I have been having problems figuring out how to create such a list of all available plugins. The folder object doesn't seem well suited to this task, because I also want to search through all the subfolders in the VST directory. (And it doesn't seem to be showing only plugins anyway when given the VST folder as an argument and BNDL as the filter parameter.) Does anyone have a better suggestion as to how one might do this? My best idea at the moment is to write an external that recursively searches through the VST folder and its subfolders. But maybe there is an external out there that does this already?

Thanks,
Greg Kellum

koriifuraa's icon

Hi,

I'm exactly sure what you are trying to do, but how about an ubumenu
that is autopopulated with the contents of your vst folder. i use
them in my performance patch to call up various plugins and it seems
well suited for listing all of the plugins i have installed in my vst
folder. just make sure the folder containing the plugins is in your
search path. again, not sure if this is what you mean, but it might
do the trick.

cheers,

corey

koriifuraa's icon

sorry typo....i'm NOT exactly sure what you are trying to do.....

robotic-audio's icon

Take a look at Jhno's folderiter object....it can be found thru maxobjects.com or in the userpages.....

make the folderiter iterate thru all subfolders of the VST folder, sort out all aPcs types...strip the path and feed it to a menu...

it's would be best to use something like regexp instead of the strippath object to remove the path, since it's a lot faster, as it dosen't check if each file is in the searchpath...

oli larkin's icon

hook up this js to an opendialog and ubuenu. Add your vst directory to the searchpaths. Should work on OSX not sure about XP.

oli

www.oli.adbe.org

// ol.plugfolder.js
// report back all vst plugins

outlets = 1;
var ftype = "aPcs";

var os = max.os;
regpattern = new RegExp(".dll", "i");

autowatch = 1;

function infolder(fpath)
{
    var f = new Folder(fpath);
    f.reset();
    while (!f.end)
    {
        if (f.filetype == "fold")
        {
            var foldername;
            // if path doesn't end with a slash add one
            if (f.pathname.charAt(f.pathname.length-1) != "/")
                foldername = f.pathname + "/" + f.filename;
            else
                foldername = f.pathname + f.filename;

            infolder(foldername);
        }

        if(f.filetype == ftype)
        {

            var plugnamestr = f.filename;

            var result = plugnamestr.split(regpattern);
            outlet(0,"append",result);
        }
        f.next();
    }
    f.close();
}

function anything()
{
    outlet(0,"clear");
//    outlet(0,"append","Plugin");
    infolder(messagename);
}

function loadbang()
{
    outlet(0,"clear");
//    outlet(0,"append","Plugin");
    infolder("Macintosh HD:/Library/Audio/Plug-Ins/VST/");
}

oli larkin's icon

by the way the vst~ object is unsupported in pluggo so I don't know if you'll be able to achieve what you want.

oli

Emmanuel Jourdan's icon
Leafcutter John's icon

I'm a bit late to this discussion - and i may have missed something but why not just use ubumenu with it's depth and auto populate functions it's perfect no?

this is a simple example:

Max Patch
Copy patch and select New From Clipboard in Max.

greg kellum's icon

Hi,

Yeah, that works even better than the other methods. The ubumenu alphabetizes the list and heirarchizes (sp?) it. Thanks for the tip! I always used the other drop down list object. So, I had no idea that ubumenu could do that.

greg

f.e's icon

? One of my best pluggo plugin contains 3 of them since a few months...

f.e