pymel.core.system.moduleInfo

moduleInfo(*args, **kwargs)

Returns information on modules found by Maya.

Flags:
Long name (short name) Argument Types Properties
definition (d) bool ../../../_images/create.gif
 
Returns module definition file name for the module specified by the -moduleName parameter.
listModules (lm) bool ../../../_images/create.gif
 
Returns an array containing the names of all currently loaded modules.
moduleName (mn) unicode ../../../_images/create.gif
 

The name of the module whose information you want to retrieve. Has to be used with either -definition / -path / -version flags.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

path (p) bool ../../../_images/create.gif
 
Returns the module path for the module specified by the -moduleName parameter.
version (v) bool ../../../_images/create.gif
 
Returns the module version for the module specified by the -moduleName parameter.

Derived from mel command maya.cmds.moduleInfo

Example:

import pymel.core as pm

pm.moduleInfo(listModules=True)
# Result: [u'mayatomr', u'substance'] #
pm.moduleInfo(definition=True, moduleName='myModule')
pm.moduleInfo(path=True, moduleName='myModule')
pm.moduleInfo(version=True, moduleName='myModule')

Previous topic

pymel.core.system.memory

Next topic

pymel.core.system.mouse

Core

Core Modules

Other Modules

This Page