initialize makefile for stl generation
This commit is contained in:
2026-03-26 16:14:58 +01:00
parent c3b2309749
commit 442cdacbe8
6 changed files with 96 additions and 2 deletions

21
.helperHeroeasKeepOut.sh Executable file
View File

@@ -0,0 +1,21 @@
OPENSCAD="openscad"
SCAD_FILE="./CardHolder.scad"
FOLDER=STL/HeroesKeepOut/
mkdir -p STL
mkdir -p $FOLDER
# ── Cards ─────────────────────────────────────────────────────────────
while IFS=',' read -r b t h name; do
# Remove quotes around name, replace spaces with -
label=$(printf '%s' "$name" | sed 's/"//g; s/ /-/g')
output="$FOLDER$label.stl"
echo "Rendering $output..."
"$OPENSCAD" \
-D "b=$b" \
-D "t=$t" \
-D "h=$h" \
-D "text_label=\"$name\"" \
-o "$output" "$SCAD_FILE"
done <./HeroesKeepOut/.cardConfigs.txt