コード例 #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))
コード例 #2
0
ファイル: appinit.py プロジェクト: immersionroom/appinit
# 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))
コード例 #3
0
ファイル: init.py プロジェクト: immersionroom/appinit
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))
コード例 #4
0
ファイル: userSetup.py プロジェクト: immersionroom/appinit
'''
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))
コード例 #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))
コード例 #6
0
ファイル: 456.py プロジェクト: immersionroom/appinit
'''
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))
コード例 #7
0
ファイル: init.py プロジェクト: immersionroom/appinit
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))