Go to: Synopsis. Return value. Keywords. Flags. Python examples.
getModulePath([moduleName=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
getModulePath is NOT undoable, NOT queryable, and NOT editable.
Returns the module path for a given module name.
module
moduleName
Long name (short name) |
Argument types |
Properties |
moduleName(mn)
|
string
|
|
|
The name of the module whose path you want to retrieve.
|
|
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.getModulePath(moduleName='myModule')