https://github.com/mjonuschat/swatchify
Batch generator for filament swatches based on https://www.printables.com/model/27814-filament-swatch
https://github.com/mjonuschat/swatchify
Last synced: 3 months ago
JSON representation
Batch generator for filament swatches based on https://www.printables.com/model/27814-filament-swatch
- Host: GitHub
- URL: https://github.com/mjonuschat/swatchify
- Owner: mjonuschat
- License: mit
- Created: 2023-03-06T04:11:27.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2023-03-06T06:21:23.000Z (over 3 years ago)
- Last Synced: 2025-07-27T21:01:01.419Z (11 months ago)
- Language: OpenSCAD
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swatchify
## Summary
Bulk generates customizable filament swatches based on the [Filament Swatch](https://www.printables.com/model/27814-filament-swatch) by Makkuro from inventory data in a CSV file.
## Features
- reads a CSV file with the manufacturer, material, color and print temperature information
- generates the right parameter set to render filament swatches
- outputs a hierarchical filesystem tree with swatches grouped by material and manufacturer
- parallelizes the rendering process by running one OpenSCAD process per (logical) CPU core.
## Tech
- Written in [Rust](https://www.rust-lang.org/)
- Concurrent processing based on [Rayon](https://github.com/rayon-rs/rayon)
## Usage
Run `swatchify --help` and `swatchify generate --help` to see supported options.
Running `swatchify generate --inventory 'Filaments.csv' -d Swatches` will read filament details from the `Filaments.csv` file and render the filament swatches into the `Swatches` directory. Missing output directories are automatically created.
By default existing filament swatches are not re-created to save time, add `--force` as an option to recreate all filament swatches from scratch.
The CSV file is expected to have four columns: manufacturer, material, color and temperature. The order of the columns should not matter as long as the first line of the CSV file is a header line.
Example CSV file:
```csv
anufacturer,material,color,temperature
eSun,PLA,Orange,210
Fiberlogy,PLA,Vertigo,215
Hatchbox,PETG,Black,235
Hatchbox,PLA,White,215
```
## Acknowledgments
[Customizable Filament Swatch](https://www.printables.com/model/27814-filament-swatch) by [Makkuro](https://www.printables.com/social/13788-makkuro/about) shared under the [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/) License.
## License
[MIT](./LICENSE)