Add a stop frame

This commit is contained in:
Matt McWilliams 2021-11-28 22:00:10 -05:00
parent d37efd4619
commit cffc6dedfb
1 changed files with 11 additions and 1 deletions

12
draw.sh
View File

@ -15,7 +15,12 @@ if [[ "${1}" == "" ]]; then
exit 1
fi
if [ "${2}" == "" ]; then
END=-1
if [[ "${3}" != "" ]]; then
END=${3}
fi
if [[ "${2}" == "" ]] && [[ $2 -eq 0 ]]; then
name=`basename "${1}"`
bash field.sh "${name}"
@ -54,6 +59,11 @@ for svg in "${1}"*.svg ; do
rm -f "${number}"
bash position.sh reset
if [[ $END -gt -1 ]] && [[ $END -eq $i ]]; then
echo "Reached final frame $i, exiting..."
exit
fi
askContinue "Continuing with next frame..."
done