mgear

mGear init module

exception mgear.FakeException
mgear.getInfos(level)

Get information from where the method has been fired. Such as module name, method, line number…

Parameters:level (int) – Level
Returns:The info
Return type:str
mgear.getVersion()

Get mGear version

Returns:mgear version
mgear.install()
mgear.log(message, severity=32, infos=False)

Log a message using severity and additional info from the file itself.

Severity has been taken from Softimage one:
    1. Fatal
    1. Error
    1. Warning
    1. Info
    1. Verbose
    1. Comment
Parameters:
  • messages (str) – The message
  • severity (int) – Severity level.
  • infos (bool) – Add extra infos from the module, class, method and line number.
mgear.logInfos()

Log version of Gear

mgear.reloadModule(name='mgear', *args)

Reload a module and its sub-modules from a given module name.

Parameters:name (str) – Module Name. Default value is “mgear”.
mgear.setDebug(b)

Set the debug mode to given value.

Parameters:b (bool) – boolean
Returns:The previous value of the debug mode
Return type:bool
mgear.toggleDebug()

Toggle the debug mode value.

Returns;
bool: The new debug mode value.