This is a quick and dirty tool made to reorient stl files. This was made to fix the orientation of stl files exported from Fusion360 for MillenniumMachines projects. As a bonus it also centers the meshes at the origin.
usage: stl_orienter.py [-h] [--path PATH] [--recursive] [--output OUTPUT] [--param-dir PARAM_DIR] [--no-apply] [--no-param] [--openscad OPENSCAD]
Orient STL files
options:
-h, --help show this help message and exit
--path PATH Directory containing STL files or single STL file
--recursive Recursively search for STL files
--output OUTPUT Output directory, if none is given, the original files will be overwritten
--param-dir PARAM_DIR
Directory containing the parameter files
--no-apply Skip applying the parameters
--no-param Skip creating new parameters
--openscad OPENSCAD Path to openscad
This tool was re-written on a Sunday morning, it is not very robust, that said it's pretty simple, so feel free to modify it.