@@ -0,0 +1,1586 @@
+saveMovie = True%0A%0Afolders = %5B%0A    u%22/path/to/your/ufo/archive/folder%22,%0A    #u%22/path/to/your/ufo/archive/folder%22,%0A%5D%0A%0A# you might want to change the layout here%0A%0Aw, h = 500, 600 # width, height%0Ax, y = 250, 150 # xpos, ypos%0As = 0.5 # scale, e.g. 0.5 * 1000 UPM = 500 pt%0A%0A%0Adef drawFrame(font, glyph):%0A    newPage(w, h)%0A    save()%0A    translate(x, y)%0A    scale(s)%0A    pen = CocoaPen(font)%0A    glyph.draw(pen)%0A    translate(-glyph.width/2, 0)%0A    drawPath(pen.path)%0A    restore()%0A%0Afrom fontTools.pens.cocoaPen import CocoaPen%0Afrom robofab.world import OpenFont%0Aimport string%0Aimport os%0A%0Apaths = %5B%5D%0Afor folder in folders:%0A    for root, dirs, files in os.walk(folder):%0A        for directory in dirs:%0A            if directory.endswith(%22.ufo%22):%0A                paths.append(os.path.join(root, directory))%0A%0Afonts = %5B%5D%0Afor path in paths:%0A    font = OpenFont(path)%0A    fonts.append(font)%0A    %0AskipCount = 0%0AframeCount = 0%0A%0Aletters = string.letters%0A%0Afor letter in letters:%0A    %0A    prevPoints = None%0A    for font in fonts:%0A        %0A        if font.has_key(letter):%0A            glyph = font%5Bletter%5D%0A        else:%0A            continue%0A    %0A        points = %5B(point.x, point.y) for contour in glyph.contours for point in contour.points%5D%0A        if points != prevPoints and len(points) %3E 1:%0A            drawFrame(font, glyph)%0A            frameCount+=1%0A        else:%0A            skipCount+=1%0A        prevPoints = points%0A%0A%0Aprint %22%25s fonts%22 %25 str(len(fonts))%0Aprint %22%25s frames%22 %25 frameCount%0Aprint %22---%22%0Aprint %22skipped %25s identical glyphs%22 %25 skipCount%0A%0Aif saveMovie:%0A    saveImage(%5B%22~/Desktop/UFOarchive.mov%22%5D)

add movie script