예제 #1
0
파일: view.py 프로젝트: hugs/detour
 def __init__(self, filepath, pos=(0,0,0), effect=fade_in):
     texture = file_to_texture(filepath) 
     self.card = box(axis = (0,0,1),
                       size = (.01, 25, 50),
                       pos = pos,
                       opacity = 0,
                       material=texture)
     effect(self.card)
예제 #2
0
파일: view.py 프로젝트: hugs/detour
def load_from_file(filepath, pos=(0,0,0), effect=fade_in):
    texture = file_to_texture(filepath) 
    card = box(axis = (0,0,1),
                      size = (.01, 25, 50),
                      pos = pos,
                      opacity = 0,
                      material=texture)
    effect(card)
    return card
예제 #3
0
파일: vdb.py 프로젝트: hugs/detour
 def interaction(self, frame, traceback):
     self.setup(frame, traceback)
     # jrh - begin
     print "Starting Interaction!"
     filepath = self.canonic(frame.f_code.co_filename) 
     texture = file_to_texture(filepath)
     set_scene()
     sourceIn3d = draw_source(texture)
     # jrh - end
     self.print_stack_entry(self.stack[self.curindex])
     self.cmdloop()
     self.forget()