fix rbuild script
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 148 KiB |
|
Before Width: | Height: | Size: 339 KiB After Width: | Height: | Size: 326 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 240 KiB After Width: | Height: | Size: 245 KiB |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 87 KiB |
@ -2,8 +2,6 @@
|
|||||||
# simple bash script to animate the frame dump from openscad
|
# simple bash script to animate the frame dump from openscad
|
||||||
|
|
||||||
name="anim"
|
name="anim"
|
||||||
|
|
||||||
# TODO provide through script
|
|
||||||
png_dir="./assembly-guide/gifs/tmp"
|
png_dir="./assembly-guide/gifs/tmp"
|
||||||
target_dir="./assembly-guide/gifs"
|
target_dir="./assembly-guide/gifs"
|
||||||
|
|
||||||
|
|||||||
24
opt.sh
@ -1,24 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Set the directory where the GIF files are located
|
|
||||||
directory="./assembly"
|
|
||||||
|
|
||||||
# Change to the target directory
|
|
||||||
cd "$directory" || exit
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Iterate over each GIF file in the directory
|
|
||||||
for file in *.gif; do
|
|
||||||
# Check if the file is a regular file
|
|
||||||
if [[ -f "$file" ]]; then
|
|
||||||
# Create a temporary file name for the resized GIF
|
|
||||||
temp_file=$(mktemp)
|
|
||||||
|
|
||||||
# Optimize and resize the GIF file using gifsicle
|
|
||||||
gifsicle -O3 --resize-fit 1920x1080 --colors 8 "$file" -o "$temp_file"
|
|
||||||
|
|
||||||
# Replace the original file with the optimized and resized version
|
|
||||||
mv "$temp_file" "$file"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
@ -1,10 +1,6 @@
|
|||||||
include <./common.scad>
|
include <./common.scad>
|
||||||
include <./screwFeet.scad>
|
include <./screwFeet.scad>
|
||||||
|
|
||||||
$vpt = [23,22,20];
|
|
||||||
$vpr = [57,0,46];
|
|
||||||
$vpd = 60;
|
|
||||||
|
|
||||||
// TODO fix this
|
// TODO fix this
|
||||||
module finalBuilds () {
|
module finalBuilds () {
|
||||||
|
|
||||||
@ -16,7 +12,7 @@ module finalBuilds () {
|
|||||||
// Features:
|
// Features:
|
||||||
// render()
|
// render()
|
||||||
// slideInNuts(at=$t);
|
// slideInNuts(at=$t);
|
||||||
// stackable(at=$t); // recommended at least 32 frames for animation
|
// stackable(at=$t);
|
||||||
// sideSwivel(at=$t);
|
// sideSwivel(at=$t);
|
||||||
|
|
||||||
module finalSingle(r=0) {
|
module finalSingle(r=0) {
|
||||||
|
|||||||
@ -181,7 +181,7 @@ def build_assembly_gifs(config, dz, nightly):
|
|||||||
|
|
||||||
def build_gif_from_png(fileName):
|
def build_gif_from_png(fileName):
|
||||||
try:
|
try:
|
||||||
subprocess.run(["bash", BUILD_GIF_FROM_PNG_SCRIPT, fileName], check=True)
|
subprocess.run(["bash", BUILD_GIF_FROM_PNG_SCRIPT, fileName, ASSEMBLY_GIF_TEMP_DIR, ASSEMBLY_GIF_BUILD_DIR], check=True)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print(f"Error calling shell script: {e}")
|
print(f"Error calling shell script: {e}")
|
||||||
|
|
||||||
|
|||||||