#!/bin/bash # # Create head spritesheet and join all the rendered images # if [ "$#" -ne 1 ]; then echo "Usage: make_spritesheet.sh head" exit 1 fi # TODO: linux path BLENDER=/Applications/blender.app/Contents/MacOS/blender INFILE=$1.blend # TODO: layers parts=(head) # Render separate actions actions=(idle firing) idle_frames=1 firing_frames=1 len_i=${#parts[*]} for (( i=0; i