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 colorspaces import * 27 from executeInMain import * 28 from overrides import * 29 30 import _nukemath as math 31 import _geo as geo 32 33 from scripts import scriptSaveAndClear 34 35 import_module(__name__, __filterNames) 36