adapt design to have text in second color
This commit is contained in:
2026-05-20 10:41:04 +02:00
parent 7ee5c48e98
commit 17f110f2bd
14 changed files with 261 additions and 140 deletions

View File

@@ -1,56 +1,47 @@
OPENSCAD="openscad"
FOLDER=STL/HeroesKeepOut
COLORSCAD="../colorscad/colorscad.sh"
FOLDER=Generated/HeroesKeepOut
mkdir -p STL
echo "Rendering Heros keep out ..."
mkdir -p Generated
mkdir -p $FOLDER
# ── Boxes ─────────────────────────────────────────────────────────────
mkdir -p $FOLDER/Box
echo "Rendering Box-Items..."
"$OPENSCAD" -o "$FOLDER/Box/Box-Items.stl" "./HeroesKeepOut/Box-Items.scad"
"$OPENSCAD" -o "$FOLDER/Box/Box-Items-Lid.stl" "./HeroesKeepOut/Box-Items-Lid.scad"
"$COLORSCAD" -o "$FOLDER/Box/Box-Items.3mf" -i "./HeroesKeepOut/Box-Items.scad"
"$COLORSCAD" -o "$FOLDER/Box/Box-Items_and_Tokens-Lid-x2.3mf" -i "./HeroesKeepOut/Box-Items-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"
"$COLORSCAD" -o "$FOLDER/Box/Box-Tokens.3mf" -i "./HeroesKeepOut/Box-Tokens.scad"
echo "Rendering Box-Figures-Heroes..."
"$OPENSCAD" -o "$FOLDER/Box/Box-Figure-Heroes.stl" "./HeroesKeepOut/Box-Figure-Heroes.scad"
"$COLORSCAD" -o "$FOLDER/Box/Box-Figure-Heroes.3mf" -i "./HeroesKeepOut/Box-Figure-Heroes.scad"
echo "Rendering Box-Figures-Big..."
"$OPENSCAD" -o "$FOLDER/Box/Box-Figure-Big.stl" "./HeroesKeepOut/Box-Figure-Big.scad"
"$COLORSCAD" -o "$FOLDER/Box/Box-Figure-Big.3mf" -i "./HeroesKeepOut/Box-Figure-Big.scad"
echo "Rendering Box-Figures-Monsters..."
"$OPENSCAD" -o "$FOLDER/Box/Box-Figure-Monsters.stl" "./HeroesKeepOut/Box-Figure-Monsters.scad"
"$COLORSCAD" -o "$FOLDER/Box/Box-Figure-Monsters.3mf" -i "./HeroesKeepOut/Box-Figure-Monsters.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/Box/Box-Figure-$label.stl"
output="$FOLDER/Box/Box-Figure-$label.3mf"
echo "Rendering $output..."
"$OPENSCAD" \
-D "x=$x" \
-D "y=$y" \
-D "z=$z" \
-D "name=\"$name\"" \
-o "$output" "$SCAD_FILE"
"$COLORSCAD" -o "$output" -i "$SCAD_FILE" -- -D "x=$x" -D "y=$y" -D "z=$z" -D "name=\"$name\""
done <./HeroesKeepOut/Box-Figure-Configs.txt
# ── Cards ─────────────────────────────────────────────────────────────
SCAD_FILE="./CardHolder.scad"
SCAD_FILE="./Card-Holder.scad"
mkdir -p $FOLDER/Cards
while IFS=',' read -r b t h name; do
# Remove quotes around name, replace spaces with -
while IFS=',' read -r x y z name; do
label=$(printf '%s' "$name" | sed 's/"//g; s/ /-/g')
output="$FOLDER/Cards/Cards-$label.stl"
output="$FOLDER/Cards/Cards-$label.3mf"
echo "Rendering $output..."
"$OPENSCAD" \
-D "x=$b" \
-D "y=$t" \
-D "z=$h" \
-D "name=\"$name\"" \
-o "$output" "$SCAD_FILE"
"$COLORSCAD" -o "$output" -i "$SCAD_FILE" -- -D "x=$x" -D "y=$y" -D "z=$z" -D "name=\"$name\""
done <./HeroesKeepOut/Card-Configs.txt