OPENSCAD(1)
OPENSCAD(1) π
okay bestie, so this is the General Commands Manual page for openscad, and I'm gonna walk you through it like we're texting at 2am. every single flag is here, no cap. π«Ά
β¨ NAME β¨
openscad β script file based graphical CAD environment π
β¨ SYNOPSIS β¨
openscad [options] [file]
that's it. that's the whole vibe. π
πΈ DESCRIPTION πΈ
This manual page documents briefly the openscad command. (yes, "briefly" β it's giving trailer, not the whole movie.)
openscad is a software for creating solid 3D CAD objects. It focuses on CAD aspects rather than artistic ones. so like, precision girlies, not paint-and-sip girlies. π
OpenSCAD will start as a graphical program unless export options are given (see below). For the usage of the GUI and a description of the OpenSCAD language see the OpenSCAD user manual at https://en.wikibooks.org/wiki/OpenSCAD_User_Manual. A tutorial can be found at https://en.wikibooks.org/wiki/OpenSCAD_Tutorial. β¨
lowkey the wikibooks pages are the real main characters here. go read them. π¦
π OPTIONS π
every single one. in order. let's go. π
-ooutputfile β Export the given file to outputfile in STL, OFF, AMF, 3MF, DXF, SVG, or PNG format, depending on file extension of outputfile. If this option is given, the GUI will not be started. (no window, just output. focused queen energy.)- Known extensions:
stl,off,amf,3mf,csg,dxf,svg,png,echo,ast,term,nef3,nefdbg. - Additional formats, which are mainly used for debugging and testing (but can also be used in automation), are AST (the input file as parsed and serialized again), CSG (an OpenSCAD language representation of the input file with calculations done and module calls applied), TERM (the constructive solid geometry expression passed to OpenCSG). If outputfile is
null, no output file will be written, but the file will still be evaluated and allechocommands will be written to the standard error output. (The rendering process will still take place if the--renderoption is given.)
- Known extensions:
--export-formatβ Overrides format of exported scad file when using option-o, arg can be any of its supported file extensions.-qβ Quiet mode (don't print anything except errors). π€«-dfile.deps β If the-doption is given, all files accessed while exporting are written to the given deps file in the syntax of a Makefile.-mmake_command β If a nonexisting file is accessed during OpenSCAD's operation, it will try to invokemake_command missing_fileto create the missing file, and then read it again. (it literally calls for backup π«Ά)-Dvar=val β This option can be used to assign constant values to OpenSCAD variables. The variable's value is an expression, so if this mechanism is used to assign strings, care has to be taken that the shell does not consume quotation marks. More than one-Doption can be given.-pβ Customizer parameter file.-pβ Customizer parameter set.
not me noticing -p shows up twice in the original page. I'm just reporting what it says, bestie, don't shoot the messenger. π
-vβ Print version. short, sweet, iconic.--renderβ If exporting an image, render the model fully. (Default is preview)--preview[=throwntogether]β If exporting an image, use an OpenCSG preview (optionally in throwntogether mode for quicker rendering).--animate[=N]β Export N animated frames as PNG images. π¬--view[=axes|crosshairs|edges|scales|wireframe]β View options--csglimit=limitβ If exporting an image as an OpenCSG preview, stop rendering after encountering limit elements to avoid runaway resource usage.--camera=transx,transy,transz,rotx,roty,rotz,distanceβ If exporting an image, use a Gimbal camera with the given parameters. Rot is rotation around the x, y, and z axis, trans is the distance to move the object in the x, y, and z directions, and distance is the distance between the camera and the center of the object.--camera=eyex,eyey,eyez,centerx,centery,centerzβ If exporting an image, use a Vector camera with the given parameters. The first three are for the Eye position, while the next three are for the Center (or target) that the camera will look at. The'up'vector is not currently supported.
yes there are TWO different --camera forms and they're both valid. pick your fighter. π
--viewallβ If exporting an image, adjust camera distance to fit the whole design in the frame--autocenterβ If exporting an image, center the design in the frame--imgsize=width,heightβ If exporting an image, specify the pixel width and height--projection=[o|ortho|p|perspective]β If exporting an image, specify whether to use orthographic or perspective projection--colorscheme=schemeβ If exporting an image, use the specified color scheme for the rendering. scheme can be any ofCornfield,Sunset,Metallic,Starnight,BeforeDawn,NatureorDeepOceanSolarized,Tomorrow,Tomorrow 2,Tomorrow Night,Monotone. π (a whole aesthetic lineup fr fr)--hardwarningsβ Stop on the first warning. no warnings tolerated, periodt. β οΈ--check-parameters=[true|false]β Configure the parameter check for user modules and functions--check-parameter-ranges=[true|false]β Configure the parameter range check for builtin modules--infoβ Show which versions of libraries were used to compile the program, and which OpenGL details are discovered. (receipts. always get the receipts. π§Ύ)
π COMMAND LINE EXAMPLES π
Render example001.scad into the .stl format (raw triangle data):
openscad -o example001.stl examples/example001.scad
Compile a 2d image using a camera rotated 25 degrees in x and 35 in z, distance 500, with orthographic projection:
openscad -o o.png o.scad --camera=0,0,0,25,0,35,500 --projection=ortho
Set the 'mode' variable in example017 so that it will render only the parts of the shape. Export to a .dxf file.
openscad -o example017.dxf -D'mode="parts"' examples/example017.scad
see how the quotes are doing important work in that last one? that's the whole shell-consuming-quotation-marks thing from -D up there. character development. π¦
π AUTHOR π
OpenSCAD was written by Claire 'Clifford' Wolf, Marius Kintel, and others. π
This manual page was written by chrysn <chrysn@fsfe.org>, for the Debian project (and may be used by others). Updated by the OpenSCAD team.
and that's the whole page bestie, slayed and fully documented π
β¨ this was version 2021.01, dated 2021.01, from the OPENSCAD(1) page of the General Commands Manual β go make something solid (literally). ππ«Ά
π¦ where this page comes from
- alpine 3.24: openscad-doc 2021.01-r19 Β· GPL-2.0-only
- arch rolling: openscad 2021.01-23 Β· GPL-2.0-or-later
- debian bookworm: openscad 2021.01-6 Β· GPL-2.0-or-later WITH CGAL exception
- debian trixie: openscad 2021.01-8 Β· GPL-2.0-or-later WITH CGAL exception
- epel 10: openscad 2021.01-26.el10_0 Β· GPL-2.0-only WITH CGAL-linking-exception AND CC0-1.0
- epel 9: openscad 2021.01-18.el9 Β· GPLv2 with exceptions and CC0
- fedora 43: openscad 2021.01-28.fc43 Β· GPL-2.0-only WITH CGAL-linking-exception AND CC0-1.0
- fedora 44: openscad 2021.01-30.fc44 Β· GPL-2.0-only WITH CGAL-linking-exception AND CC0-1.0
- nixos 26.05: openscad 2021.01
- nixpkgs unstable: openscad 2021.01
- ubuntu jammy: openscad 2021.01-4build1 Β· GPL-2.0-or-later WITH CGAL exception
- ubuntu noble: openscad 2021.01-6build4 Β· GPL-2.0-or-later WITH CGAL exception
- ubuntu questing: openscad 2021.01-9
- ubuntu resolute: openscad 2021.01-11 Β· GPL-2.0-or-later WITH CGAL exception
- ubuntu stonking: openscad 2021.01-14 Β· GPL-2.0-or-later WITH CGAL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms