def initialize(): from PtNode import PtNode global options, driver, cameras, shapes PtPluginManager.loadPlugin("PtOptions") options = PtNode("PtOptions") #driver = PtNode("jpeg_driver") cameras = [] shapes = []
def PtBegin(verbose=0): # initialize world PtWorld.initialize() io.initialize() PtWorld.getOptions().verbose.setValue(verbose) # Welcome msg msg ="Pytrace Rendering API\n" msg+="by Rudy Cortes - [email protected]\n\n" io.oInfo(msg,0,label=False) # Load Plugins corePlugins = ['camera','driver','shape'] io.oInfo("Loading Plugins:\n",1) for dir in corePlugins: pdir = os.path.join(PtCommon.rootDir,dir) if os.path.exists(pdir): io.oInfo("\t%s\n"%os.path.basename(pdir).capitalize(), 2, label=False) PtPluginManager.loadPlugins(pdir,core=True) PtWorld.driver = PtNode("display_driver")
def PtBegin(verbose=0): # initialize world PtWorld.initialize() io.initialize() PtWorld.getOptions().verbose.setValue(verbose) # Welcome msg msg = "Pytrace Rendering API\n" msg += "by Rudy Cortes - [email protected]\n\n" io.oInfo(msg, 0, label=False) # Load Plugins corePlugins = ['camera', 'driver', 'shape'] io.oInfo("Loading Plugins:\n", 1) for dir in corePlugins: pdir = os.path.join(PtCommon.rootDir, dir) if os.path.exists(pdir): io.oInfo("\t%s\n" % os.path.basename(pdir).capitalize(), 2, label=False) PtPluginManager.loadPlugins(pdir, core=True) PtWorld.driver = PtNode("display_driver")