#!/bin/bash #Uses Blender, Inkscape, Gimp and ~/.gimp*/scripts/whiteborder.scm #Renders the scene from this .blend file: file=chatbubble #Export png from all svg files for f in *.svg do inkscape -f "$f" -e "`basename $f .svg`.png" done #Render single Blender scene render_scene() { blender -b "$PWD/$file.blend" -S "$scene" -o "//$scene#" -f 1 rename "${scene}1" "$scene" "${scene}1".* } #Render the Blender scene scene=chatbubble render_scene #Add white border gimp -d -f -i -b '(whiteborder "chatbubble.tga" 1 5 12 0 4)' -b '(gimp-quit 0)'