From 06ec3c961ca930211f5339af6d98d56431820a80 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Fri, 29 May 2020 12:07:42 -0400 Subject: [PATCH] Don't render images as --preview, just render completely --- scripts/v2.sh | 10 +--------- scripts/v3.sh | 11 ++--------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/scripts/v2.sh b/scripts/v2.sh index a844cc0..4722bc2 100644 --- a/scripts/v2.sh +++ b/scripts/v2.sh @@ -47,14 +47,6 @@ do echo "Rendering image of ${stl}..." - if [[ "${FILE}" == "spiral" ]]; then - tmp=`mktemp` - fullPath=`realpath "${stl}"` - data="import(\"${fullPath}\");" - echo > "${tmp}.scad" - openscad -o "$png" --preview --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${tmp}.scad" - else - openscad -o "$png" --preview --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${scad}" - fi + openscad -o "$png" --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${scad}" done done \ No newline at end of file diff --git a/scripts/v3.sh b/scripts/v3.sh index 1358874..5bfddef 100644 --- a/scripts/v3.sh +++ b/scripts/v3.sh @@ -52,14 +52,7 @@ do echo "Rendering image of ${stl}..." - if [[ "${FILE}" -eq "spiral" ]]; then - tmp=`mktemp` - fullPath=`realpath "${stl}"` - data="import(\"${fullPath}\");" - echo > "${tmp}.scad" - openscad -o "$png" --preview --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${tmp}.scad" - else - openscad -o "$png" --preview --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${scad}" - fi + openscad -o "$png" --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${scad}" + done done \ No newline at end of file