Returns information on modules found by Maya.
Flags:
Long Name / Short Name | Argument Types | Properties | |
---|---|---|---|
definition / d | bool | ![]() |
|
|
|||
listModules / lm | bool | ![]() |
|
|
|||
moduleName / mn | unicode | ![]() |
|
The name of the module whose information you want to retrieve. Has to be used with either -definition / -path / -version flags. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
path / p | bool | ![]() |
|
|
|||
version / v | bool | ![]() |
|
|
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')