#!/bin/bash # # Create character spritesheet and join all the rendered images # set -e if [ "$#" -ne 1 ]; then echo "Usage: make_spritesheet.sh body" exit 1 fi if [[ "$OSTYPE" == "linux-gnu" ]]; then BLENDER=blender else # macos BLENDER=/Applications/blender.app/Contents/MacOS/blender fi INFILE=$1/src.blend # Render separate body parts (in collections) parts=(legs upper) # Render separate actions actions_legs=(idle run) actions_upper=(idle run idle_handgun run_handgun idle_dualgun run_dualgun idle_rifle run_rifle idle_riflefire run_riflefire) idle_frames=1 run_frames=80 len_i=${#parts[*]} for (( i=0; i