Python script to sort a folder of STLs depending on Z-height and then move them to corresponding folders for easy plate creation of similar height models.
Right now the script will just look for the biggest diff in Z height and split the STLs at that height. A more elaborate algorithm migth be added in the future.
- Install requirements
pip install -r requirements.txt
- Add your stl files in a folder named STLs in the same folder as main.py. Voron usually release their stls in folders named STLs so you can just add a folder directly from a Voron repo.
- Run main.py
or
python main.py
python3 main.py
- Sorted folder is created with stls storted by type (main, accent, other) and in to subfolders (short, tall) depending on their Z height.
Sorted main short tall accent short tall other short tall