Example #1
0
def start():
    if FiberMayaAppData._initialized == False:
        import coralMayaConfig
        coralUi.init(configModule=coralMayaConfig)

        import coralMayaPlugin
        coralApp.loadPluginModule(coralMayaPlugin)

        import coralMayaPluginUi
        coralUi.loadPluginUiModule(coralMayaPluginUi)

        mayaPluginPath = os.path.dirname(__file__)
        cmds.loadPlugin(os.path.join(mayaPluginPath, "coralMayaPlugin"))

        _initMayaEnvironment()

        FiberMayaAppData._coralDrawNode = cmds.createNode("coralDrawNode")

        coralApp.scanAutoLoadPaths()

        FiberMayaAppData._initialized = True

    coralUi.mainWindow().restoreSettings()
Example #2
0
def start():
    if FiberMayaAppData._initialized == False:
        import coralMayaConfig
        coralUi.init(configModule = coralMayaConfig)
    
        import coralMayaPlugin
        coralApp.loadPluginModule(coralMayaPlugin)
            
        import coralMayaPluginUi
        coralUi.loadPluginUiModule(coralMayaPluginUi)

        mayaPluginPath = os.path.dirname(__file__)
        cmds.loadPlugin(os.path.join(mayaPluginPath, "coralMayaPlugin"))
    
        _initMayaEnvironment()
        
        FiberMayaAppData._coralDrawNode = cmds.createNode("coralDrawNode")
        
        coralApp.scanAutoLoadPaths()
        
        FiberMayaAppData._initialized = True
    
    coralUi.mainWindow().restoreSettings()
Example #3
0
#      notice, this list of conditions and the following disclaimer.
# 
#    * Redistributions in binary form must reproduce the above copyright
#      notice, this list of conditions and the following disclaimer in the
#      documentation and/or other materials provided with the distribution.
# 
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# </license>


from coral import coralApp
from coral.coralUi import coralUi
import coralStandaloneConfig

coralUi.init(configModule = coralStandaloneConfig)
coralApp.scanAutoLoadPaths()
coralUi.scanAutoLoadPaths()
coralUi.startApp()

coralApp.finalize()
Example #4
0
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# </license>
import logging
import sys

import sip

sip.setapi(u'QDate', 2)
sip.setapi(u'QDateTime', 2)
sip.setapi(u'QString', 2)
sip.setapi(u'QTextStream', 2)
sip.setapi(u'QTime', 2)
sip.setapi(u'QUrl', 2)
sip.setapi(u'QVariant', 2)

from coral import coralApp
from coral.coralUi import coralUi
import coralStandaloneConfig

logger = logging.getLogger("coraline")
if len(sys.argv) and "debug" in sys.argv:
    logger.setLevel(logging.DEBUG)

coralUi.init(configModule = coralStandaloneConfig)
coralApp.scanAutoLoadPaths()
coralUi.scanAutoLoadPaths()
coralUi.startApp()
coralApp.finalize()
# sys.exit()