Animate with dump pictures from command line #1632

nairaner opened this Issue Apr 25, 2016 · 5 comments


None yet

4 participants


Adding option to use animation would be useful for specifying output image resolution, which would allow downsampling for better animation, as well as animation of more complicated models.

t-paul commented Apr 25, 2016

Animation is basically a GUI feature, but it's possible to just give the $t parameter manually on command line like openscad -D$t=0.2 -o out.png in.scad which should have pretty much the same effect when calling multiple times with varying values.


It works, but it is very slow due to reload of all files when making each file

t-paul commented Apr 25, 2016

The idea is to provide some means for persistent caching which would help for multiple use cases including this one.

@kintel kintel added the New Feature label May 2, 2016
kintel commented May 2, 2016

I guess it's conceivable to have a cmd-line option to specify animation parameters, and run the preview-to-png renderer in a loop. It's kind of crossing into application scripting though.

Hexelena commented May 14, 2016 edited

I would like to add that when running in a shell like bash, you have to put the $t=0.2 in quotation marks like:
openscad -D'$t=0.2' -o out.png in.scad
Otherwise it will be interpreted as shell variable.
Also the viewport variables $vpt, $vpr and $vpd are not used when run from command line. You have to use the --camera option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment