Files
BoardGameInlets/.helperHerosKeepOut.sh
Elias Schröter b41e43cf2c Cardholder
fix errors in the cardholder, format and switch to 1.5mm walls
2026-03-28 13:56:39 +01:00

22 lines
670 B
Bash
Executable File

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 "name=\"$name\"" \
-o "$output" "$SCAD_FILE"
done <./HeroesKeepOut/cardConfigs.txt