Add: shell scripts for rendering test frame and animation
parent
e345ab8da3
commit
2ff7738dab
|
|
@ -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:
|
||||||
|
|
@ -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:
|
||||||
Loading…
Reference in New Issue