How to use customizer presets in both ScadBox and OpenSCAD

Updated 27 November 2026

OpenSCAD keeps customizer presets (it calls them parameter sets) in a JSON file beside the design: design.json next to design.scad. ScadBox 1.1 keeps them in the .scad itself, as comments OpenSCAD ignores, so they travel with the file, and it also reads and writes OpenSCAD's .json, so both apps can show the same presets.

Everything ScadBox does below comes in ScadBox 1.1, coming soon. ScadBox 1.0 keeps a design's presets in a .scadbox file beside it, which OpenSCAD can use too: openscad -p design.scadbox -P "Preset name".

Presets in OpenSCAD

In OpenSCAD's Customizer, choose values, then save them as a parameter set with a name. OpenSCAD writes every set to a JSON file with the design's name, next to it. To pick one, use the Customizer's preset menu; on the command line, give the file and the set's name:

openscad -p design.json -P "Big shed" -o big-shed.stl design.scad

The .json has to go wherever the design goes: send someone the .scad on its own and the presets stay behind.

Presets in ScadBox

Change the values in the parameters panel, then choose Presets › Save Current Values as Preset…. ScadBox writes a comment block at the end of the design, holding only the values that differ from the design's own:

/* ScadBox preset "Big shed":
 * shed_w = 3600;
 * roof = "gable";
 */

Choose a preset from the Presets menu and the parameters panel shows its values (the rest go back to the design's). Delete one from the same menu. Because the presets are in the file, they go along when you share it, and your AI agent can read and write them like any other code.

File › Print › Each preset (contact sheet) renders every preset from the current angle on one page, each with its name and the values it changes: to print, save as a PDF, or save as an image. On iPhone and iPad, the Customize panel has the same Presets menu and a Contact Sheet to share or print.

Using both apps

ScadBox lists the presets in a design's design.json along with its own, and applies them the same way. To give OpenSCAD every preset ScadBox has, choose Presets › Save Presets for OpenSCAD: ScadBox writes them all into design.json, in OpenSCAD's own format. From then on, a preset saved or deleted in ScadBox changes the .json too, so the two apps stay in step.

ScadBox's command line renders with values too: scadbox-mcp render design.scad -D shed_w=3600.

Questions

Does OpenSCAD read ScadBox's preset comments?
No: to OpenSCAD they're ordinary comments, so they never affect the model. Use Presets › Save Presets for OpenSCAD to put them in the .json OpenSCAD reads.
What if the design and the .json both have a preset with the same name?
ScadBox shows one: the design's own comes first, then the .json's, then any in an older .scadbox file.
Do presets hold every value?
ScadBox's hold only the values that differ from the design's, so they stay short and follow the design when its other defaults change. OpenSCAD's sets usually hold every value; both apps apply whatever a preset lists.
Can I make a picture of every preset?
Yes: File › Print › Each preset (contact sheet) on the Mac, or Presets › Contact Sheet… on iPhone and iPad.
ScadBox is a native SCAD app for Mac, iPhone, iPad, Apple Vision Pro and Apple TV, ready for your AI agent. Free, with an optional Pro upgrade.
Download for MacComing soon