Go to: Synopsis. Flags. Return value. Related. Python examples.
openMayaPref([errlog=boolean], [lazyLoad=boolean], [oldPluginWarning=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
openMayaPref is undoable, queryable, and editable.
Set or query API preferences.
errlog, lazyLoad, oldPluginWarning
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.
|
[int] indicates success or failure
loadPlugin, pluginInfo, unloadPlugin
import maya.cmds as cmds
# Enable RTLD_LAZY binding when loading plug-ins
cmds.openMayaPref( lz=True )
# Force RTLD_NOW binding when loading plug-ins
cmds.openMayaPref( lz=False )
# Disable the warning about old plug-ins being loaded
cmds.openMayaPref( ow=False )
# Turn on the Error log
cmds.openMayaPref( errlog=True )
# Query the Error log
cmds.openMayaPref( q=True, errlog=True )
# Turn off the Error log
cmds.openMayaPref( errlog=False )