@folkertvanheusden @OpenSCAD Just emitting the povray script per frame s enough (foo-0001.pov, ...), then the rest can be a Makefile outside (Like we currently emit a bunch of *.png files and then use the Makefile to make the animation in the end).
I would not invoke PovRay from OpenSCAD, it is just too resource hungry. That is better in a batch job.