Go to: Synopsis. Return value. Keywords. Flags. Python examples.
moduleInfo([definition=boolean], [listModules=boolean], [moduleName=string], [path=boolean], [version=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
moduleInfo is NOT undoable, NOT queryable, and NOT editable.
Returns information on modules found by Maya.
module
definition, listModules, moduleName, path, version
Long name (short name) |
Argument types |
Properties |
definition(d)
|
boolean
|
|
|
Returns module definition file name for the module specified by the -moduleName parameter.
|
|
listModules(lm)
|
boolean
|
|
|
Returns an array containing the names of all currently loaded modules.
|
|
moduleName(mn)
|
string
|
|
|
The name of the module whose information you want to retrieve. Has to be used with either -definition / -path / -version flags.
|
|
path(p)
|
boolean
|
|
|
Returns the module path for the module specified by the -moduleName parameter.
|
|
version(v)
|
boolean
|
|
|
Returns the module version for the module specified by the -moduleName parameter.
|
|
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 have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
cmds.moduleInfo(listModules=True)
cmds.moduleInfo(definition=True, moduleName='myModule')
cmds.moduleInfo(path=True, moduleName='myModule')
cmds.moduleInfo(version=True, moduleName='myModule')