discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

svg export

TO
Trevor Orr
Mon, Aug 25, 2025 3:59 PM

In the latest snapshot when exporting to svg there is a dialog box that
pops up that allows you to specify fill and stroke colors.  Is there a
way to specify those colors on the command line?

--
Trevor Orr
customcribboards.com
541-490-2422

In the latest snapshot when exporting to svg there is a dialog box that pops up that allows you to specify fill and stroke colors. Is there a way to specify those colors on the command line? -- Trevor Orr customcribboards.com 541-490-2422
JL
Jamie Larkby-Lahet
Mon, Aug 25, 2025 4:32 PM

I've been wondering about (disabling) 3mf color on the commandline as well.
though I'm getting used to the yellow.

On Mon, Aug 25, 2025, 11:00 Trevor Orr via Discuss <
discuss@lists.openscad.org> wrote:

In the latest snapshot when exporting to svg there is a dialog box that
pops up that allows you to specify fill and stroke colors.  Is there a
way to specify those colors on the command line?

--
Trevor Orr
customcribboards.com
541-490-2422


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I've been wondering about (disabling) 3mf color on the commandline as well. though I'm getting used to the yellow. On Mon, Aug 25, 2025, 11:00 Trevor Orr via Discuss < discuss@lists.openscad.org> wrote: > In the latest snapshot when exporting to svg there is a dialog box that > pops up that allows you to specify fill and stroke colors. Is there a > way to specify those colors on the command line? > > > -- > Trevor Orr > customcribboards.com > 541-490-2422 > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
TP
Torsten Paul
Mon, Aug 25, 2025 7:26 PM

$ openscad-nightly --help-export

OpenSCAD version 2025.08.03.nightly

List of settings that can be given using the -O option using the
format '<section>/<key>=value', e.g.:
openscad -O export-pdf/paper-size=a6 -O export-pdf/show-grid=false

Section 'export-pdf':

  • paper-size (enum): [a6,a5,<a4>,a3,letter,legal,tabloid]
  • orientation (enum): [<portrait>,landscape,auto]
  • show-filename (bool): true/<false>
  • show-scale (bool): <true>/false
  • show-scale-message (bool): <true>/false
  • show-grid (bool): true/<false>
  • grid-size (double): 1.000000 : <10.000000> : 100.000000
  • add-meta-data (bool): <true>/false
  • meta-data-title (string): ""
  • meta-data-author (string): ""
  • meta-data-subject (string): ""
  • meta-data-keywords (string): ""
  • fill (bool): true/<false>
  • fill-color (string): "black"
  • stroke (bool): <true>/false
  • stroke-color (string): "black"
  • stroke-width (double): 0.000000 : <0.350000> : 999.000000
    Section 'export-3mf':
  • color-mode (enum): [<model>,none,selected-only]
  • unit (enum): [micron,<millimeter>,centimeter,meter,inch,foot]
  • color (string): "#f9d72c"
  • material-type (enum): [color,<basematerial>]
  • decimal-precision (int): 1 : <6> : 16
  • add-meta-data (bool): <true>/false
  • meta-data-title (string): ""
  • meta-data-designer (string): ""
  • meta-data-description (string): ""
  • meta-data-copyright (string): ""
  • meta-data-license-terms (string): ""
  • meta-data-rating (string): ""
    Section 'export-svg':
  • fill (bool): true/<false>
  • fill-color (string): "white"
  • stroke (bool): <true>/false
  • stroke-color (string): "black"
  • stroke-width (double): 0.000000 : <0.350000> : 999.000000
$ openscad-nightly --help-export OpenSCAD version 2025.08.03.nightly List of settings that can be given using the -O option using the format '<section>/<key>=value', e.g.: openscad -O export-pdf/paper-size=a6 -O export-pdf/show-grid=false Section 'export-pdf': - paper-size (enum): [a6,a5,<a4>,a3,letter,legal,tabloid] - orientation (enum): [<portrait>,landscape,auto] - show-filename (bool): true/<false> - show-scale (bool): <true>/false - show-scale-message (bool): <true>/false - show-grid (bool): true/<false> - grid-size (double): 1.000000 : <10.000000> : 100.000000 - add-meta-data (bool): <true>/false - meta-data-title (string): "" - meta-data-author (string): "" - meta-data-subject (string): "" - meta-data-keywords (string): "" - fill (bool): true/<false> - fill-color (string): "black" - stroke (bool): <true>/false - stroke-color (string): "black" - stroke-width (double): 0.000000 : <0.350000> : 999.000000 Section 'export-3mf': - color-mode (enum): [<model>,none,selected-only] - unit (enum): [micron,<millimeter>,centimeter,meter,inch,foot] - color (string): "#f9d72c" - material-type (enum): [color,<basematerial>] - decimal-precision (int): 1 : <6> : 16 - add-meta-data (bool): <true>/false - meta-data-title (string): "" - meta-data-designer (string): "" - meta-data-description (string): "" - meta-data-copyright (string): "" - meta-data-license-terms (string): "" - meta-data-rating (string): "" Section 'export-svg': - fill (bool): true/<false> - fill-color (string): "white" - stroke (bool): <true>/false - stroke-color (string): "black" - stroke-width (double): 0.000000 : <0.350000> : 999.000000
TO
Trevor Orr
Mon, Aug 25, 2025 9:12 PM

Great, thanks.  That is exactly what I needed.

On Mon, Aug 25, 2025 at 12:26 PM Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:

$ openscad-nightly --help-export

OpenSCAD version 2025.08.03.nightly

List of settings that can be given using the -O option using the
format '<section>/<key>=value', e.g.:
openscad -O export-pdf/paper-size=a6 -O export-pdf/show-grid=false

Section 'export-pdf':
- paper-size (enum): [a6,a5,<a4>,a3,letter,legal,tabloid]
- orientation (enum): [<portrait>,landscape,auto]
- show-filename (bool): true/<false>
- show-scale (bool): <true>/false
- show-scale-message (bool): <true>/false
- show-grid (bool): true/<false>
- grid-size (double): 1.000000 : <10.000000> : 100.000000
- add-meta-data (bool): <true>/false
- meta-data-title (string): ""
- meta-data-author (string): ""
- meta-data-subject (string): ""
- meta-data-keywords (string): ""
- fill (bool): true/<false>
- fill-color (string): "black"
- stroke (bool): <true>/false
- stroke-color (string): "black"
- stroke-width (double): 0.000000 : <0.350000> : 999.000000
Section 'export-3mf':
- color-mode (enum): [<model>,none,selected-only]
- unit (enum): [micron,<millimeter>,centimeter,meter,inch,foot]
- color (string): "#f9d72c"
- material-type (enum): [color,<basematerial>]
- decimal-precision (int): 1 : <6> : 16
- add-meta-data (bool): <true>/false
- meta-data-title (string): ""
- meta-data-designer (string): ""
- meta-data-description (string): ""
- meta-data-copyright (string): ""
- meta-data-license-terms (string): ""
- meta-data-rating (string): ""
Section 'export-svg':
- fill (bool): true/<false>
- fill-color (string): "white"
- stroke (bool): <true>/false
- stroke-color (string): "black"
- stroke-width (double): 0.000000 : <0.350000> : 999.000000


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
Trevor Orr
customcribboards.com
541-490-2422

Great, thanks. That is exactly what I needed. On Mon, Aug 25, 2025 at 12:26 PM Torsten Paul via Discuss < discuss@lists.openscad.org> wrote: > $ openscad-nightly --help-export > > OpenSCAD version 2025.08.03.nightly > > List of settings that can be given using the -O option using the > format '<section>/<key>=value', e.g.: > openscad -O export-pdf/paper-size=a6 -O export-pdf/show-grid=false > > Section 'export-pdf': > - paper-size (enum): [a6,a5,<a4>,a3,letter,legal,tabloid] > - orientation (enum): [<portrait>,landscape,auto] > - show-filename (bool): true/<false> > - show-scale (bool): <true>/false > - show-scale-message (bool): <true>/false > - show-grid (bool): true/<false> > - grid-size (double): 1.000000 : <10.000000> : 100.000000 > - add-meta-data (bool): <true>/false > - meta-data-title (string): "" > - meta-data-author (string): "" > - meta-data-subject (string): "" > - meta-data-keywords (string): "" > - fill (bool): true/<false> > - fill-color (string): "black" > - stroke (bool): <true>/false > - stroke-color (string): "black" > - stroke-width (double): 0.000000 : <0.350000> : 999.000000 > Section 'export-3mf': > - color-mode (enum): [<model>,none,selected-only] > - unit (enum): [micron,<millimeter>,centimeter,meter,inch,foot] > - color (string): "#f9d72c" > - material-type (enum): [color,<basematerial>] > - decimal-precision (int): 1 : <6> : 16 > - add-meta-data (bool): <true>/false > - meta-data-title (string): "" > - meta-data-designer (string): "" > - meta-data-description (string): "" > - meta-data-copyright (string): "" > - meta-data-license-terms (string): "" > - meta-data-rating (string): "" > Section 'export-svg': > - fill (bool): true/<false> > - fill-color (string): "white" > - stroke (bool): <true>/false > - stroke-color (string): "black" > - stroke-width (double): 0.000000 : <0.350000> : 999.000000 > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > -- Trevor Orr customcribboards.com 541-490-2422