demoOutputPluginClasses.py

demoOutputPluginClasses.py
1 '''
2  Demonstrates using the PluginManager to extract information about loaded plugins.
3 '''
4 import MaxPlus
5 
6 # List all plug-in dlls
7 pluginsDlls = MaxPlus.PluginManager.PluginDlls
8 print "Total PluginDlls: {0}\n".format(MaxPlus.PluginManager.GetNumPluginDlls())
9 for pd in pluginsDlls:
10  print "PluginDll:", pd.FilePath
11  print "Description:", pd.Description
12  print "Loaded:", pd.Loaded
13  print "NumClasses:", pd.NumClasses
14  for cd in pd.Classes:
15  if cd:
16  print " ", cd.GetClassName()