mercredi 17 septembre 2014

Ubuntu Blender batch render

Simple batch script to render multiple scene in queue.

create the script in a text file.(no extension) Name it 'testbash'. Drop it in the Ubuntu home folder.


Scene settings override:
#$ chmod +x testbash
#./testbash
VAR1="/home/loran/Documents/00-diaporama/DIAPORAMA_part1"
cd /home/loran/Documents/blender-2.80-BETA
./blender -b $VAR1/SLIDESHOW1.blend -o //render2/01/ -F JPG -s 001 -e 949 -a
./blender -b $VAR1/SLIDESHOW2.blend -o //render2/02/ -F JPG -s 001 -e 302 -a

echo "Rendus terminé le $(date)"

Use scene settings (here a mp4 video was rendered):
#$ chmod +x testbash
#./testbash
VAR1="/home/loran/Documents/00-diaporama/DIAPORAMA_part1"
cd /home/loran/Documents/blender-2.80-BETA
./blender -b $VAR1/montage.blend -o //EXPORTS/ -s 1 -e 12374 -a


Launch terminal (CTRL ALT T)
write:
$ chmod +x testbash
then:
./testbash

https://docs.blender.org/manual/en/latest/render/workflows/command_line.html