nuke

Package nuke |
[hide private]
[frames] | no frames]

# Source Code for Package nuke

     1  # Copyright (c) 2009 The Foundry Visionmongers Ltd.  All Rights Reserved.
     2
     3  """\
     4  This module provides all the Nuke-specific functions and Classes.
     5  """
     6  __all__ = []
     7
     8 -def __filterNames(name):
     9    namesList = ["import_module"]
    10    if name[0] == "_" or name in namesList: return False
    11    return True
    12
    13 -def import_module(name, filterRule):
    14    global __all__
    15    import inspect
    16    mod = __import__(name)
    17    for i in dir(mod):
    18      obj = getattr(mod, i)
    19      if filterRule(i):
    20        __all__.append(i)
    21
    22  # get the functions that are compiled into Nuke:
    23  from _nuke import *
    24  from utils import *
    25  from callbacks import *
    26  from executeInMain import *
    27  from overrides import *
    28
    29  import _nukemath as math
    30  import _geo as geo
    31
    32  import_module(__name__, __filterNames)
    33