コード例 #1
0
ファイル: main_gui.py プロジェクト: highclow/animoires
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
ファイル: main_gui.py プロジェクト: jobar/animoires
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 ...'