Created
January 19, 2012 05:41
-
-
Save secunit64/1638211 to your computer and use it in GitHub Desktop.
Tiling generator - used in conjunction with tiling.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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