Go to: Synopsis. Return value. Keywords. Flags. Python examples.

Synopsis

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.

Return value

string[]

Keywords

module

Flags

definition, listModules, moduleName, path, version
Long name (short name) Argument types Properties
listModules(lm) boolean create
Returns an array containing the names of all currently loaded modules.
definition(d) boolean create
Returns module definition file name for the module specified by the -moduleName parameter.
path(p) boolean create
Returns the module path for the module specified by the -moduleName parameter.
version(v) boolean create
Returns the module version for the module specified by the -moduleName parameter.
moduleName(mn) string create
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 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.

Python examples

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')