Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)

src/p/b/pbrtMayaPy-HEAD/pbrtMayaPy.py   pbrtMayaPy(Download)
                OpenMaya.MGlobal.displayError( "Failed to load "+AETemplateName )
 
        if OpenMaya.MGlobal.mayaState() == OpenMaya.MGlobal.kInteractive:
            # Create Top menu
            mainMenu().make()

src/p/b/pbrtMayaPy-HEAD/PBRT/Commands/Exporter.py   pbrtMayaPy(Download)
 
 
        if OpenMaya.MGlobal.mayaState() == OpenMaya.MGlobal.kInteractive:
            self.mProgress = OpenMayaUI.MProgressWindow()
        else:

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/pymel-1.0.5/pymel/internal/startup.py   PipelineConstructionSet(Download)
        maya.app.startup.basic.executeUserSetup()
 
    state = om.MGlobal.mayaState()
    if state == om.MGlobal.kLibraryApp: # mayapy only
        initMEL()
def fixMayapy2011SegFault():
    if versions.v2011 <= versions.current() < versions.v2013 :
        import platform
        if platform.system() == 'Linux':
            if om.MGlobal.mayaState() == om.MGlobal.kLibraryApp: # mayapy only

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/pymel-1.0.3/pymel/internal/startup.py   PipelineConstructionSet(Download)
        maya.app.startup.basic.executeUserSetup()
 
    state = om.MGlobal.mayaState()
    if state == om.MGlobal.kLibraryApp: # mayapy only
        initMEL()
def fixMayapy2011SegFault():
    if versions.current() >= versions.v2011:
        import platform
        if platform.system() == 'Linux':
            if om.MGlobal.mayaState() == om.MGlobal.kLibraryApp: # mayapy only

src/p/b/pbrtMayaPy-HEAD/PBRT/Commands/pbrtbatch.py   pbrtMayaPy(Download)
    def initProgressWindow(self):
 
        from Exporter import consoleProgress
 
        self.MayaGUIMode = OpenMaya.MGlobal.mayaState() == OpenMaya.MGlobal.kInteractive

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/pymel-1.0.5/pymel/mayautils.py   PipelineConstructionSet(Download)
    import maya.utils
    import maya.OpenMaya
    if maya.OpenMaya.MGlobal.mayaState() == maya.OpenMaya.MGlobal.kInteractive:
        maya.utils.executeDeferred(func, *args, **kwargs)
    else:

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/pymel-1.0.3/pymel/mayautils.py   PipelineConstructionSet(Download)
    import maya.utils
    import maya.OpenMaya
    if maya.OpenMaya.MGlobal.mayaState() == maya.OpenMaya.MGlobal.kInteractive:
        maya.utils.executeDeferred(func, *args, **kwargs)
    else:

src/p/y/pymel-HEAD/pymel/internal/startup.py   pymel(Download)
    # we could end up in here again, inside the initial finalize...
    _finalizeCalled = True
    state = om.MGlobal.mayaState()
    if state == om.MGlobal.kLibraryApp: # mayapy only
        global isInitializing

src/p/y/pymel-HEAD/pymel/mayautils.py   pymel(Download)
    import maya.utils
    import maya.OpenMaya
    if maya.OpenMaya.MGlobal.mayaState() == maya.OpenMaya.MGlobal.kInteractive:
        maya.utils.executeDeferred(func)
    else:

src/m/r/mrv-1-1.0.3-stable/mrv/maya/util.py   MRV(Download)
				traceback.print_exc()
 
			if api.MGlobal.mayaState() == api.MGlobal.kInteractive:
				import mrv.maya.ui as ui
				msg = str(e)

  1 | 2  Next