[bash] Combined Script

Viewer

copyrawdownloadembedprintName: Combined Script
  1. #!/bin/bash
  2.  
  3. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  4.  
  5. mkdir $DIR/$2
  6.  
  7. for file in $DIR/female_base/*.blend; do
  8.  
  9.         # Creating blend file for the new character.
  10.         blender $file --background --python $DIR/../blender_templates/import_new.py -- $(pwd)/$1 $DIR/$2/${file##*/}
  11.  
  12.         # Generating sprites from the new blend file.
  13.         blender $DIR/$2/${file##*/} --background --python $DIR/../blender_templates/character.py
  14.  
  15. done

Editor

You can edit this paste and save as new: