The butterfly shown in this video is a part of my interactive installation of robotic butterflies. The mechanism is 3D printed on a Makerbot and designed in Vectorworks (CAD software). Heart of the controller is an Arduino
Project page: http://www.sanni-t.com/will-you-play-with-me-2-0/
I showed a classmate at NYU ITP all about G-codes- how to use them for 3D printing directly from code and how to tweak G-code parameters to get cool effects while 3D printing. He used my instructions to create a web application to generate 3D prints of parametric designs. Above prints were made using his app
G-code instructions page: https://itp.nyu.edu/~spp306/sanni_blog/?p=344