Obtaining the list of plug-ins

For the pymxs equivalent of this topic, see Working with Plug-ins.

The example demoOutputPluginClasses.py demonstrates how to use PluginManager.PluginDlls to obtain a list of plug-in dlls that are loaded. For each dll, you can obtain information such as its description, file path, the number of classes that it includes, as well as enumerate across the list of classes.

pluginsDlls = MaxPlus.PluginManager.PluginDlls
print "Total PluginDlls: {0}\n".format(MaxPlus.PluginManager.GetNumPluginDlls())
for pd in pluginsDlls:
    print "PluginDll:", pd.FilePath 
    print "Description:", pd.Description
    print "Loaded:", pd.Loaded
    print "NumClasses:", pd.NumClasses
    for cd in pd.Classes:
        if cd:
            print "  ", cd.GetClassName()

You can enumerate across the list of classes and print out the list of class names.

for cd in pd.Classes:
    if cd:
        print "  ", cd.GetClassName()