Ejemplo n.º 1
0
import sys

# We can easily be sourced a few times.
_appinit_nuke_gui_counter = globals().get('_appinit_nuke_gui_counter', 0) + 1
if _appinit_nuke_gui_counter == 1:
    print >> sys.stderr, '[appinit] nuke hooked via menu'
    try:
        import appinit
        appinit.init('nuke.gui')
    except Exception as e:
        import warnings
        warnings.warn('[appinit] exception %s during init: %s' %
                      (e.__class__.__name__, e))
Ejemplo n.º 2
0
# We can easily be sourced a few times.
_appinit_counter = globals().get('_appinit_counter', 0) + 1
if _appinit_counter == 1:
    print '[appinit] IT hooked via it.ini'
    try:
        import appinit
        appinit.init('it')
    except Exception as e:
        import warnings
        warnings.warn('[appinit] exception %s during init: %s' % (e.__class__.__name__, e))
Ejemplo n.º 3
0
import sys

# We can easily be sourced a few times.
_appinit_nuke_counter = globals().get('_appinit_nuke_counter', 0) + 1
if _appinit_nuke_counter == 1:
    print >> sys.stderr, '[appinit] nuke hooked via init'
    try:
        import appinit
        appinit.init('nuke')
    except Exception as e:
        import warnings
        warnings.warn('[appinit] exception %s during init: %s' %
                      (e.__class__.__name__, e))
Ejemplo n.º 4
0
'''
One of the many hooks for Maya.
'''

# We can easily be sourced a few times.
_appinit_counter = globals().get('_appinit_counter', 0) + 1
if _appinit_counter == 1:
    print '[appinit] maya hooked via userSetup'
    try:
        import appinit
        appinit.init('maya')
    except Exception as e:
        import warnings
        warnings.warn('[appinit] exception %s during init: %s' % (e.__class__.__name__, e))
Ejemplo n.º 5
0
import sys

# We can easily be sourced a few times.
_appinit_mari_gui_counter = globals().get('_appinit_mari_gui_counter', 0) + 1
if _appinit_mari_gui_counter == 1:
    print >> sys.stderr, '[appinit] mari hooked via menu'
    try:
        import appinit
        appinit.init('mari.gui')
    except Exception as e:
        import warnings
        warnings.warn('[appinit] exception %s during init: %s' %
                      (e.__class__.__name__, e))
Ejemplo n.º 6
0
'''
One of the many hooks for Houdini.
'''

# We can easily be sourced a few times.
_appinit_456_counter = globals().get('_appinit_456_counter', 0) + 1
if _appinit_456_counter == 1:
    print '[appinit] houdini hooked via 456'
    try:
        import appinit
        appinit.init('houdini')
    except Exception as e:
        import warnings
        warnings.warn('[appinit] %s during appinit.init(): %s' %
                      (e.__class__.__name__, e))
Ejemplo n.º 7
0
import sys

# We can easily be sourced a few times.
_appinit_mari_counter = globals().get('_appinit_mari_counter', 0) + 1
if _appinit_mari_counter == 1:
    print >> sys.stderr, '[appinit] mari hooked via init'
    try:
        import appinit
        appinit.init('mari')
    except Exception as e:
        import warnings
        warnings.warn('[appinit] exception %s during init: %s' %
                      (e.__class__.__name__, e))