DIN objectives adaptation for microscope?

The best place should be in microscope_parameters.scad. Or you can use the -D command line option if you are compiling from the terminal.

Sorry about all the confusion. This confusion is why we are trying to clean up the code base to avoid these global parameters. We have a way forward but it will take us a way to complete it.

For context (as it may be helpful). In OpenSCAD the last place a variable is defined is the value that is used. Any variables in the outer scope of a file are global for all function in the file. These global pass between files when using “include” but not when using “use”. This is very useful behaviour for small projects as some parameters can be defined at the top of a file (or in another file) and they can be overridden if necessary. For a project as big as the microscope this has become unweildly, as you need to understand many files and the “scope” of the variables. The fixes we are now implementing are only possible because OpenSCAD has improved significantly since the OpenFlexure project started. For more details on our new solution please see OFEP1.