src/jmLightToolkit.py
def loadMtoA():
    """ Prompt a dialog and ask if you want load MtoA. """
    if not pm.pluginInfo("mtoa", q=True, loaded=True):
        message = "MtoA is not loaded, do you want to load it?"
        status = pm.confirmDialog(title=__name__, message=message, button=['Yes', 'No'],
            defaultButton='Yes', cancelButton='No', dismissString='No')

        if status == "Yes":
            try: pm.loadPlugin("mtoa")
            except RuntimeError, e: _logger.warning(e)
 Prompt a dialog and ask if you want load MtoA. 
Prompt a dialog and ask if you want load MtoA.
Prompt a dialog and ask if you want load MtoA .
def loadMtoA():
    if not pm.pluginInfo("mtoa", q=True, loaded=True):
        message = "MtoA is not loaded, do you want to load it?"
        status = pm.confirmDialog(title=__name__, message=message, button=['Yes', 'No'],
            defaultButton='Yes', cancelButton='No', dismissString='No')
        if status == "Yes":
            try: pm.loadPlugin("mtoa")
            except RuntimeError, e: _logger.warning(e)
def loadMtoA ( ) : if not pm . pluginInfo ( "mtoa" , q = True , loaded = True ) : message = "MtoA is not loaded, do you want to load it?" status = pm . confirmDialog ( title = __name__ , message = message , button = [ 'Yes' , 'No' ] , defaultButton = 'Yes' , cancelButton = 'No' , dismissString = 'No' ) if status == "Yes" : try : pm . loadPlugin ( "mtoa" ) except RuntimeError , e : _logger . warning ( e )
Prompt a dialog and ask if you want load MtoA.
Prompt a dialog and ask if you want load MtoA .
""" Prompt a dialog and ask if you want load MtoA. """