22 lines
409 B
Bash
Executable File
22 lines
409 B
Bash
Executable File
#!/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:
|