Automatic Label (Or Embedded Text) Generator Script! CSV -> STL Automation

A script to bulk-add unique text items to ANY OpenScad Design (Labels, Designs, & More!)
183
424
0
3581
updated January 20, 2025

Description

PDF

This script will allow you to use the Command Line on your computer + OpenScad to generate HUGE amounts of any OpenScad file (Labels, Personalized Designs, etc) using a simple CSV.

 

How To Use It:

  1. Populate the CSV File with everything you want in it
  2. Customize / Perfect the OpenScad file to suit your needs (change sizes, fonts, magnet holes, or just put an entirely different design in there! This script will work with ANY OpenScad File that uses the variable “textString”)
  3. Put everything in the same directory on your computer, and navigate into that folder in your Command Line
  4. Run this command python3 stllabels.py label_template.scad labels.csv
  5. Watch as a folder is populated with 1 STL and 1 SCAD file (in case you need to customize an individual label) for each line item in your CSV!

 

If it doesn't work, you might need to create a “symlink” to tell your computer where to get OpenScad:

sudo ln -s "/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD" /usr/local/bin/openscad

 

Thanks to Fiverr & Ali 

This script was created by Fiverr seller "Ali" as part of a collaboration with Fiverr. To check Ali out and hire him for your own tasks, you can click here. 

 

See it in action!

Model origin

The author marked this model as their own original creation.

License