Go to: Synopsis. Return value. Related. Flags. MEL examples.

Synopsis

pluginInfo [-activeFile] [-apiVersion] [-autoload boolean] [-cacheFormat string] [-changedCommand string] [-command string] [-data string string] [-dependNode string string] [-dependNodeId string] [-device string] [-dragAndDropBehavior string] [-iksolver string] [-listPlugins] [-loadPluginPrefs] [-loaded] [-name string] [-path string] [-pluginsInUse] [-registered] [-remove] [-savePluginPrefs] [-serviceDescriptions] [-settings] [-tool string] [-translator string] [-unloadOk] [-userNamed] [-vendor string] [-version] [string]

pluginInfo is undoable, queryable, and editable.

This command provides access to the plugin registry of the application. It is used mainly to query the characteristics of registered plugins. Plugins automatically become registered the first time that they are loaded.

The argument is either the internal name of the plug-in or the path to access it.

Return value

AnyDependent upon the action requested.

In query mode, return type is based on queried flag.

Related

loadPlugin, openMayaPref, unloadPlugin

Flags

activeFile, apiVersion, autoload, cacheFormat, changedCommand, command, data, dependNode, dependNodeId, device, dragAndDropBehavior, iksolver, listPlugins, loadPluginPrefs, loaded, name, path, pluginsInUse, registered, remove, savePluginPrefs, serviceDescriptions, settings, tool, translator, unloadOk, userNamed, vendor, version
Long name (short name) Argument types Properties
-name(-n) string query
returns a string containing the internal name by which the plugin is registered.
-path(-p) string query
returns a string containing the absolute path name to the plugin.
-vendor(-vd) string query
returns a string containing the vendor of the plugin.
-version(-v) query
returns a string containing the version the plugin.
-apiVersion(-av) query
returns a string containing the version of the API that this plugin was complied with. See the comments in MTypes.h for the details on how to interpret this value.
-listPlugins(-ls) query
returns a string array containing all the plugins that are currently loaded.
-pluginsInUse(-pu) query
returns a string array containing all the plugins that are currently being used in the scene.
-loaded(-l) query
returns a boolean specifying whether or not the plugin is loaded.
-unloadOk(-uo) query
returns a boolean that specifies whether or not the plugin can be safely unloaded. It will return false if the plugin is currently in use. For example, if the plugin adds a new dependency node type, and an instance of that node type is present in the scene, then this query will return false.
-autoload(-a) boolean createqueryedit
sets whether or not this plugin should be loaded every time the application starts up. Returns a boolean in query mode.
-savePluginPrefs(-spp) create
saves the plugin preferences (ie. autoload) out to pluginPrefs.mel
-loadPluginPrefs(-lpp) create
loads the plugin preferences (ie. autoload) from pluginPrefs.mel into Maya.
-command(-c) string querymultiuse
returns a string array containing the names of all of the commands registered by this plugin.
-tool(-t) string querymultiuse
returns a string array containing the names of all of the tool contexts registered by this plugin.
-dependNode(-dn) string string querymultiuse
returns a string array containing the names of all of the nodes registered by this plugin.
-dependNodeId(-dni) string query
returns a integer array containing the ids of all of the nodes registered by this plugin.
-data(-d) string string querymultiuse
returns a string array containing the names of all of the data types registered by this plugin.
-translator(-tr) string query
returns a string array containing the names of all of the file translators registered by this plugin.
-iksolver(-ik) string query
returns a string array containing the names of all of the ik solvers registered by this plugin.
-device(-dv) string query
returns a string array containing the names of all of the devices registered by this plugin.
-dragAndDropBehavior(-ddb) string query
returns a string array containing the names of all of the drag and drop behaviors registered by this plugin.
-userNamed(-u) query
returns a boolean specifying whether or not the plugin has been assigned a name by the user.
-registered(-r) query
returns a boolean specifying whether or not plugin is currently registered with the system.
-serviceDescriptions(-sd) query
if there are services in use, then this flag will return a string array containing short descriptions saying what those services are.
-remove(-rm) edit
removes the given plugin's record from the registry. There is no return value.
-changedCommand(-cc) string edit
adds a callback that will get executed every time the plugin registry changes. Any other previously registered callbacks will also get called.
-settings(-set) query
Returns an array of values with the loaded, autoload, registered flags
-cacheFormat(-cf) string query
returns a string array containing the names of all of the registered geometry cache formats
-activeFile(-af) query
Specifies that the -pluginsInUse/-pu flag should return the plugins used by the active file only, not the entire scene. For use during export selected.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// List the plugins that are currently loaded
pluginInfo -query -listPlugins;

// Find the vendor of a plugin
pluginInfo -query -vendor newNode;

// Find the commands provided by a given plug-in
pluginInfo -query -command helloCmd;

// Turn on autoloading for a plug-in
pluginInfo -edit -autoload true newNode;