This command provides access to the plug-in registry of the application. It is used mainly to query the characteristics of registered plug-ins. 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.
Flags:
Long Name / Short Name | Argument Types | Properties | |
---|---|---|---|
activeFile / af | bool | ![]() |
|
Restricts the command to the active file only, not the entire scene. This only affects the -dependNode/-dn and -pluginsInUse/-pu flags. For use during export selected. |
|||
animCurveInterp / aci | unicode | ![]() |
|
|
|||
apiVersion / av | bool | ![]() |
|
Returns a string containing the version of the API that this plug-in was compiled with. See the comments in MTypes.h for the details on how to interpret this value. |
|||
autoload / a | bool | ![]() ![]() ![]() |
|
|
|||
cacheFormat / cf | bool | ![]() |
|
|
|||
changedCommand / cc | script | ![]() |
|
|
|||
command / c | unicode | ![]() |
|
Returns a string array containing the names of all of the normal commands registered by this plug-in. Constraint, control, context and model editor commands are not included. |
|||
constraintCommand / cnc | unicode | ![]() |
|
Returns a string array containing the names of all of the constraint commands registered by this plug-in. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
controlCommand / ctc | unicode | ![]() |
|
|
|||
data / d | unicode, unicode | ![]() |
|
|
|||
dependNode / dn | bool | ![]() |
|
|
|||
dependNodeByType / dnt | unicode | ![]() |
|
Returns a string array of all registered node types within a specified class of nodes. Each custom node type registered by a plug-in belongs to a more general class of node types as specified by its MPxNode::Type. The flag’s argument is an MPxNode::Type as a string. For example, if you want to list all registered Locator nodes, you should specify kLocatorNode as a argument to this flag. |
|||
dependNodeId / dni | unicode | ![]() |
|
|
|||
device / dv | bool | ![]() |
|
|
|||
dragAndDropBehavior / ddb | bool | ![]() |
|
|
|||
iksolver / ik | bool | ![]() |
|
|
|||
listPlugins / ls | bool | ![]() |
|
|
|||
listPluginsPath / lsp | bool | ||
loadPluginPrefs / lpp | bool | ![]() |
|
|
|||
loaded / l | bool | ![]() |
|
|
|||
modelEditorCommand / mec | unicode | ![]() |
|
|
|||
name / n | unicode | ![]() |
|
|
|||
path / p | unicode | ![]() |
|
|
|||
pluginsInUse / pu | bool | ![]() |
|
|
|||
registered / r | bool | ![]() |
|
|
|||
remove / rm | bool | ![]() |
|
|
|||
renderer / rdr | 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 plug-in can be safely unloaded. It will return false if the plug-in is currently in use. For example, if the plug-in 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 | ![]() |
|
|
|||
writeRequires / wr | bool | ![]() ![]() ![]() |
|
Sets whether or not this plug-in should write requirescommand into the saved file. requirescommand could autoload the plug-in when you open or import that saved file. This way, Maya will load the plug-in when a file is being loaded for some specified reason, such as to create a customized UI or to load some plug-in data that is not saved in any node or attributes. For example, stereoCamerais using this flag for its customized UI. |
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'OpenEXRLoader', u'DirectConnect', u'AbcImport', u'mayaHIK', u'Mayatomr', u'ikSpringSolver', u'tiffFloatReader', u'AbcExport', u'VectorRender', u'ArubaTessellator', u'quatNodes', u'mayaCharacterization', u'gpuCache', u'rotateHelper', u'Substance', u'MayaMuscle', u'OneClick', u'AutodeskPacketFile', u'retargeterNodes', u'fbxmaya', u'matrixNodes', u'stereoCamera', u'sceneAssembly', 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 )
# Return all custom locators registered by plug-ins.
pm.pluginInfo( query=True, dependNodeByType="kLocatorNode" )