Created
January 19, 2012 05:38
-
-
Save secunit64/1638205 to your computer and use it in GitHub Desktop.
Script to be used with interlace.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 | |
| #This script needs to be used in conjuntion with interlace.py | |
| #It will always do a "mkdir" on the output_directory, even if it exists. On most Unix systems it is fine. | |
| if [ $# -ne 4 ] | |
| then | |
| echo "Error. $0 Needs 4 arguments." | |
| echo "Please use: $0 <start_frame> <end_frame> <input_directory> <output_directory>" | |
| exit | |
| fi | |
| mkdir $4 | |
| for ((i=$1 ; i <= $2 ; i++ )); | |
| do | |
| echo "Doing frame $i" | |
| python interlace.py $3/`printf "left_frame%04d.png" $i` $3/`printf "right_frame%04d.png" $i` `printf $4/"frame%04d.png" $i` | |
| done | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment