#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" mkdir $DIR/$2 for file in $DIR/female_base/*.blend; do # Creating blend file for the new character. blender $file --background --python $DIR/../blender_templates/import_new.py -- $(pwd)/$1 $DIR/$2/${file##*/} # Generating sprites from the new blend file. blender $DIR/$2/${file##*/} --background --python $DIR/../blender_templates/character.py done