New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animate with dump pictures from command line #1632

Open
nairaner opened this Issue Apr 25, 2016 · 5 comments

Comments

Projects
None yet
4 participants
@nairaner

nairaner commented Apr 25, 2016

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.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@t-paul

This comment has been minimized.

Show comment
Hide comment
@t-paul

t-paul Apr 25, 2016

Member

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.

Member

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.

@nairaner

This comment has been minimized.

Show comment
Hide comment
@nairaner

nairaner Apr 25, 2016

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

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

@t-paul

This comment has been minimized.

Show comment
Hide comment
@t-paul

t-paul Apr 25, 2016

Member

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

Member

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

This comment has been minimized.

Show comment
Hide comment
@kintel

kintel May 2, 2016

Member

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.

Member

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

This comment has been minimized.

Show comment
Hide comment
@Hexelena

Hexelena May 14, 2016

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.

Hexelena commented May 14, 2016

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