示例#1
0
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 ...'
示例#2
0
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 ...'
示例#3
0
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 ...'
示例#4
0
文件: main.py 项目: jobar/animoires
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 ...'