While I'm working on an animation I run the script once to save the .gif file to the disk, then I select the file and hit the space bar to open it in Quick Look to preview the animation. I leave this preview window open in the Finder while I continue to work on editing the script in DrawBot — every time the file gets updated with a newly saved .gif it will automatically start previewing the new version. Kind of a strange technique but it works!
Thank you so much the reply has been very helpful. I can see that I was thinking too much about modifying all areas of the code instead of changing a small component.
Enjoy the day.
oh, there is indeed no progress callback on saveImage(..)
Doing some googling on 'progress' and 'ffmpeg' does not results in a clear solution.
DrawBot has a small wrapper around ffmpeg to generate movies: see https://github.com/typemytype/drawbot/blob/master/drawBot/context/tools/mp4Tools.py
DrawBot could be installed as module, so the import could be available.
appName = AppKit.NSBundle.mainBundle().infoDictionary().get("CFBundleDisplayName")
appName will be DrawBot, RoboFont or None (in terminal)
@frederik Thanks. Will have a look which type gives the best result. To use the actual font sounds like a good choice though. In Processing (where I made this animation first) I used SVG, but mainly because it's almost impossible to work with type in Processing. Curious which one is faster also.