cleanup & figures big & Tokens
This commit is contained in:
@@ -1,33 +1,56 @@
|
||||
OPENSCAD="openscad"
|
||||
SCAD_FILE="./CardHolder.scad"
|
||||
FOLDER=STL/HeroesKeepOut
|
||||
|
||||
mkdir -p STL
|
||||
mkdir -p $FOLDER
|
||||
|
||||
# ── Boxes ─────────────────────────────────────────────────────────────
|
||||
mkdir -p $FOLDER/Box
|
||||
echo "Rendering Box-Items..."
|
||||
"$OPENSCAD" -o "$FOLDER/Box-Items.stl" "./HeroesKeepOut/Box-Items.scad"
|
||||
"$OPENSCAD" -o "$FOLDER/Box-Items-Lid.stl" "./HeroesKeepOut/Box-Items-Lid.scad"
|
||||
"$OPENSCAD" -o "$FOLDER/Box/Box-Items.stl" "./HeroesKeepOut/Box-Items.scad"
|
||||
"$OPENSCAD" -o "$FOLDER/Box/Box-Items-Lid.stl" "./HeroesKeepOut/Box-Items-Lid.scad"
|
||||
|
||||
echo "Rendering Box-Heroes..."
|
||||
"$OPENSCAD" -o "$FOLDER/Box-Heroes.stl" "./HeroesKeepOut/Box-Heroes.scad"
|
||||
"$OPENSCAD" -o "$FOLDER/Box-Heroes-Lid.stl" "./HeroesKeepOut/Box-Heroes-Lid.scad"
|
||||
echo "Rendering Box-Tokens..."
|
||||
"$OPENSCAD" -o "$FOLDER/Box/Box-Tokens.stl" "./HeroesKeepOut/Box-Tokens.scad"
|
||||
"$OPENSCAD" -o "$FOLDER/Box/Box-Tokens-Lid.stl" "./HeroesKeepOut/Box-Items-Lid.scad"
|
||||
|
||||
echo "Rendering Box-Figures-Heroes..."
|
||||
"$OPENSCAD" -o "$FOLDER/Box-Figures-Heroes.stl" "./HeroesKeepOut/Box-Figures-Heroes.scad"
|
||||
"$OPENSCAD" -o "$FOLDER/Box/Box-Figure-Heroes.stl" "./HeroesKeepOut/Box-Figure-Heroes.scad"
|
||||
|
||||
# ── Cards ─────────────────────────────────────────────────────────────
|
||||
while IFS=',' read -r b t h name; do
|
||||
echo "Rendering Box-Figures-Big..."
|
||||
"$OPENSCAD" -o "$FOLDER/Box/Box-Figure-Big.stl" "./HeroesKeepOut/Box-Figure-Big.scad"
|
||||
|
||||
echo "Rendering Box-Figures-Monster-1..."
|
||||
"$OPENSCAD" -o "$FOLDER/Box/Box-Figure-Monster-1.stl" "./HeroesKeepOut/Box-Figure-Monster-1.scad"
|
||||
|
||||
SCAD_FILE="./HeroesKeepOut/Box-Figure.scad"
|
||||
while IFS=',' read -r x y z name; do
|
||||
# Remove quotes around name, replace spaces with -
|
||||
label=$(printf '%s' "$name" | sed 's/"//g; s/ /-/g')
|
||||
output="$FOLDER/Cards-$label.stl"
|
||||
output="$FOLDER/Box/Box-Figure-$label.stl"
|
||||
|
||||
echo "Rendering $output..."
|
||||
"$OPENSCAD" \
|
||||
-D "b=$b" \
|
||||
-D "t=$t" \
|
||||
-D "h=$h" \
|
||||
-D "x=$x" \
|
||||
-D "y=$y" \
|
||||
-D "z=$z" \
|
||||
-D "name=\"$name\"" \
|
||||
-o "$output" "$SCAD_FILE"
|
||||
done <./HeroesKeepOut/cardConfigs.txt
|
||||
done <./HeroesKeepOut/Box-Figure-Configs.txt
|
||||
|
||||
# ── Cards ─────────────────────────────────────────────────────────────
|
||||
SCAD_FILE="./CardHolder.scad"
|
||||
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/Cards/Cards-$label.stl"
|
||||
|
||||
echo "Rendering $output..."
|
||||
"$OPENSCAD" \
|
||||
-D "x=$b" \
|
||||
-D "y=$t" \
|
||||
-D "z=$h" \
|
||||
-D "name=\"$name\"" \
|
||||
-o "$output" "$SCAD_FILE"
|
||||
done <./HeroesKeepOut/Card-Configs.txt
|
||||
|
||||
Reference in New Issue
Block a user