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

nop head nop.head at gmail.com
Mon Sep 24 09:19:11 EDT 2018


Re-ordered to put more obscure options later and color scheme list
generated programmatically.

Usage: openscad.exe [options] file.scad
Allowed options:
  -o [ --o ] arg        out_file -output a file instead of running the GUI,
the
                        file extension specifies the type: stl, off, amf,
csg,
                        dxf, svg, png, echo, ast, term, nef3, nefdbg
  -D [ --D ] arg        var=val -pre-define variables
  -p [ --p ] arg        customizer parameter file
  -P [ --P ] arg        customizer parameter set
  -h [ --help ]         print this help message and exit
  -v [ --version ]      print the version
  --camera arg          camera parameters when exporting png:
                        translate_x,y,z,rot_x,y,z,dist or
                        eye_x,y,z,center_x,y,z
  --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
evaluation
  --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 | Metallic | Sunset |
Starnight
                        | BeforeDawn | Nature | DeepOcean | Solarized |
                        Tomorrow | Tomorrow Night | Monotone
  --csglimit arg        if exporting a png image, stop rendering at the
given
                        number of CSG elements
  -d [ --d ] arg        deps_file -generate a dependency file for make
  -m [ --m ] arg        make_cmd -runs make_cmd file if file is missing
  --enable arg          enable experimental features
  --info                print information about the build process
  --debug arg           special debug info
  -q [ --quiet ]        quiet mode (don't print anything *except* errors)
  -s [ --s ] arg        stl-file deprecated, use -o
  -x [ --x ] arg        dxf-file deprecated, use -o


On 24 September 2018 at 13:17, nop head <nop.head at gmail.com> wrote:

> How about this:
>
> Usage: openscad.exe [options] file.scad
> Allowed options:
>   -o [ --o ] arg        out_file -output a file instead of running the
> GUI, the
>                         file extension specifies the type: stl, off, amf,
> csg,
>                         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
> given
>                         number of CSG elements
>   --camera arg          camera parameters when exporting png:
>                         translate_x,y,z,rot_x,y,z,dist or
>                         eye_x,y,z,center_x,y,z
>   --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
> evaluation
>   --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/669891fc/attachment.html>


More information about the Discuss mailing list