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)
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
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()