[OpenSCAD] Light source and default camera position different on command line

nop head nop.head at gmail.com
Mon Sep 24 08:17:35 EDT 2018

How about this:

Usage: openscad.exe [options] file.scad
Allowed options:
  -o [ --o ] arg        out_file -output a file instead of running the GUI,
                        file extension specifies the type: stl, off, amf,
                        dxf, svg, png, echo, ast, term
  -D [ --D ] arg        var=val -pre-define variables
  -d [ --d ] arg        deps_file -generate a dependency file for make
  -m [ --m ] arg        make_cmd -runs make_cmd file if file is missing
  -h [ --help ]         print this help message and exit
  -v [ --version ]      print the version
  --info                print information about the build process
  --csglimit arg        if exporting a png image, stop rendering at the
                        number of CSG elements
  --camera arg          camera parameters when exporting png:
                        translate_x,y,z,rot_x,y,z,dist or
  --autocenter          adjust camera to look at object center
  --viewall             adjust camera to fit object
  --imgsize arg         =width,height for exporting png
  --render arg          if exporting a png image, do a full geometry
  --preview arg         if exporting a png image, do an OpenCSG(default) or
                        ThrownTogether preview
  --projection arg      (o)rtho or (p)erspective when exporting png
  --colorscheme arg     colorscheme Cornfield | Sunset | Metallic |
Starnight |
                        BeforeDawn | Nature | DeepOcean
  -p [ --p ] arg        customizer parameter file
  -P [ --P ] arg        customizer parameter set
  -s [ --s ] arg        stl-file deprecated, use -o
  -x [ --x ] arg        dxf-file deprecated, use -o
  --enable arg          enable experimental features
  --debug arg           special debug info
  -q [ --quiet ]        quiet mode (don't print anything *except* errors)

The list of colour schemes need to be generated programmatically as well
because it inevitable doesn't match those in the menu.

On 24 September 2018 at 02:52, TLC123 <torleif.ceder at gmail.com> wrote:

> Looks very nice.
> There is still space to further clarify the first four though.
>  -o [ --o ] arg        out-file
>  -d [ --d ] arg        deps-file
>  -D [ --D ] arg        var=val
>  -m [ --m ] arg        makefile
> --
> Sent from: http://forum.openscad.org/
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20180924/d5315abf/attachment.html>

More information about the Discuss mailing list