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

Synopsis

moduleInfo [-definition] [-listModules] [-moduleName string] [-path] [-version]

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
-definition(-d) create
Returns module definition file name for the module specified by the -moduleName parameter.
-listModules(-lm) create
Returns an array containing the names of all currently loaded modules.
-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.
-path(-p) create
Returns the module path for the module specified by the -moduleName parameter.
-version(-v) create
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 be used more than once in a command.

MEL examples

moduleInfo -listModules;
moduleInfo -definition -moduleName "myModule";
moduleInfo -path -moduleName "myModule";
moduleInfo -version -moduleName "myModule";