Working with Plug-ins

The pluginManager interface exposes properties and methods for managing 3ds Max plug-ins. The sample output_plugin_classes.py illustrates how to enumerate all the loaded plug-ins and print out some information about them.

'''
    Demonstrates using the PluginManager to extract information about loaded
    plugins.
'''
from pymxs import runtime as rt # pylint: disable=import-error

# List all plug-in dlls
PLUGIN_COUNT = rt.pluginManager.pluginDllCount
print("Total PluginDlls: {0}\n".format(PLUGIN_COUNT))
# maxscript uses one based indices
for p in range(1, PLUGIN_COUNT + 1):
    print("PluginDll:", rt.pluginManager.pluginDllFullPath(p))
    print("Description:", rt.pluginManager.pluginDllName(p))
    print("Loaded:", rt.pluginManager.isPluginDllLoaded(p))