def main(): animationFactory = AnimationFactory() animation = animationFactory.getAnimation('test3') #f = open('test.json') #json_str = f.read() #animation = jsonpickle.decode(json_str) if (isinstance(animation, Animation) and animation is not None): app = Window(animation) Gtk.main() else: print 'Couldn' 't generate animation ...'
def main(): animationFactory = AnimationFactory() animation = animationFactory.getAnimation('test3') #f = open('test.json') #json_str = f.read() #animation = jsonpickle.decode(json_str) if (isinstance(animation, Animation) and animation is not None): app = Window(animation) Gtk.main() else: print 'Couldn''t generate animation ...'
def main(): videoFileName = "test.mp4" jsonFileName = "test.json" anmFileName = "test.anm" animationFactory = AnimationFactory() animation = animationFactory.getAnimation('test2') if animation is not None: #videoMaker = VideoMaker() #videoMaker.makeClean(animation, videoFileName) jsonPrinter = JsonPrinter() jsonPrinter.printObject(animation, jsonFileName) else: print 'Couldn' 't generate animation ...'
def main(): videoFileName = "test.mp4" jsonFileName = "test.json" anmFileName = "test.anm" animationFactory = AnimationFactory() animation = animationFactory.getAnimation('test2') if animation is not None: #videoMaker = VideoMaker() #videoMaker.makeClean(animation, videoFileName) jsonPrinter = JsonPrinter() jsonPrinter.printObject(animation, jsonFileName) else: print 'Couldn''t generate animation ...'