diff --git a/scripts/render-animation.sh b/scripts/render-animation.sh new file mode 100755 index 0000000..a9e361b --- /dev/null +++ b/scripts/render-animation.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Renders a blender animation + +if [ $# -ne 1 ]; then + echo "You must supply a blend file" + exit 1 +fi + +if [ ! -e $1 ]; then + echo "$1 is not a valid file" + exit 1 +fi + +BLENDFILE=$(basename -s .blend $1) + +cd "$(dirname $1)" + +time blender -b ${BLENDFILE}.blend -o //renders/$BLENDFILE -a -t 0 -- --cycles-device CUDA+CPU | grep Finished + +exit 0 +# vim:set ts=2 sw=2 et: diff --git a/scripts/test-render.sh b/scripts/test-render.sh new file mode 100755 index 0000000..c6c32e6 --- /dev/null +++ b/scripts/test-render.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Renders the first frame of a blender file + +if [ $# -ne 1 ]; then + echo "You must supply a blend file" + exit 1 +fi + +if [ ! -e $1 ]; then + echo "$1 is not a valid file" + exit 1 +fi + +BLENDFILE=$(basename -s .blend $1) + +cd "$(dirname $1)" + +time blender -b ${BLENDFILE}.blend -o //renders/stills/$BLENDFILE -t 0 -F PNG -f 1 -- --cycles-device CUDA+CPU | grep Finished + +exit 0 +# vim:set ts=2 sw=2 et: