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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
activeFile (af) | bool | ||
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 have multiple arguments, passed either as a tuple or a list. |
|||
apiVersion (av) | bool | ||
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. |
|||
autoload (a) | bool | ||
|
|||
cacheFormat (cf) | bool | ||
|
|||
changedCommand (cc) | callable | ||
|
|||
command (c) | unicode | ||
|
|||
data (d) | unicode, unicode | ||
|
|||
dependNode (dn) | bool | ||
|
|||
dependNodeId (dni) | unicode | ||
|
|||
device (dv) | bool | ||
|
|||
dragAndDropBehavior (ddb) | bool | ||
|
|||
iksolver (ik) | bool | ||
|
|||
listPlugins (ls) | bool | ||
|
|||
listPluginsPath (lsp) | bool | ||
loadPluginPrefs (lpp) | bool | ||
|
|||
loaded (l) | bool | ||
|
|||
name (n) | unicode | ||
|
|||
path (p) | unicode | ||
|
|||
pluginsInUse (pu) | bool | ||
|
|||
registered (r) | bool | ||
|
|||
remove (rm) | bool | ||
|
|||
savePluginPrefs (spp) | bool | ||
|
|||
serviceDescriptions (sd) | bool | ||
|
|||
settings (set) | bool | ||
|
|||
tool (t) | unicode | ||
|
|||
translator (tr) | bool | ||
|
|||
unloadOk (uo) | bool | ||
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. |
|||
userNamed (u) | bool | ||
|
|||
vendor (vd) | unicode | ||
|
|||
version (v) | bool | ||
|
Derived from mel command maya.cmds.pluginInfo
Example:
import pymel.core as pm
# List the plugins that are currently loaded
pm.pluginInfo( query=True, listPlugins=True )
# Result: [u'Fur', u'DirectConnect', u'mayaHIK', u'studioImport', u'Mayatomr', u'ikSpringSolver', u'rotateHelper', u'MayaMuscle', u'fbxmaya', u'ik2Bsolver'] #
# Find the vendor of a plugin
pm.pluginInfo( 'newNode.py', query=True, vendor=True )
# Find the commands provided by a given plug-in
pm.pluginInfo( 'helloCmd.py', query=True, command=True )
# Turn on autoloading for a plug-in
pm.pluginInfo( 'newNode.py', edit=True, autoload=True )