Skip to content

Instantly share code, notes, and snippets.

@secunit64
Created January 19, 2012 05:41
Show Gist options
  • Select an option

  • Save secunit64/1638211 to your computer and use it in GitHub Desktop.

Select an option

Save secunit64/1638211 to your computer and use it in GitHub Desktop.
Tiling generator - used in conjunction with tiling.py
#!/bin/sh
if [ $# -ne 3 ]
then
echo "Error. $0 Needs 3 arguments."
echo "Please use: $0 <input_directory> <x_tiles> <y_tiles>"
exit
fi
i=0
while [[ -e $1/`printf "frame%04d.png" $i` ]]; do
echo "Doing $i"
#echo "python tiling.py $1/`printf "frame%04d.png " $i` $2 $3"
python tiling.py $1/`printf "frame%04d.png " $i` $2 $3
let i++
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment