#!/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: