2021-08-07 16:14:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#field guide
|
|
|
|
|
|
|
|
name=`basename "${1}"`
|
2021-08-10 22:41:48 +00:00
|
|
|
bash position.sh set
|
|
|
|
ax guides/guide_all.svg
|
2021-08-07 16:14:59 +00:00
|
|
|
number=`mktemp`.svg
|
|
|
|
node ./numbers/ -n "${name}" -o "${number}"
|
2021-08-10 22:41:48 +00:00
|
|
|
ax "${number}"
|
2021-08-07 16:14:59 +00:00
|
|
|
rm -f "${number}"
|
2021-08-10 22:41:48 +00:00
|
|
|
bash position.sh reset
|
|
|
|
|
2021-08-10 22:42:51 +00:00
|
|
|
echo "Are you ready to continue? (yes/no)"
|
2021-08-10 22:41:48 +00:00
|
|
|
read input
|
|
|
|
if [ "$input" != "n" ] && [ "$input" != "no" ]
|
|
|
|
then
|
|
|
|
echo "Starting with first frame..."
|
|
|
|
else
|
|
|
|
exit 1
|
|
|
|
fi
|
2021-08-07 16:14:59 +00:00
|
|
|
|
|
|
|
#files in dir
|
|
|
|
for svg in "${1}"*.svg ; do
|
|
|
|
filename=`basename "${svg}"`
|
|
|
|
name=`echo "${filename}" | cut -d'.' -f1`
|
|
|
|
num=`echo "${name}" | awk -F'_' '{print $(NF)}'`
|
|
|
|
echo "Drawing $svg file..."
|
2021-08-10 22:07:06 +00:00
|
|
|
bash position.sh set
|
|
|
|
ax guides/guide_marks.svg
|
2021-08-07 16:14:59 +00:00
|
|
|
number=`mktemp`.svg
|
|
|
|
node ./numbers/ -n "${num}" -o "${number}"
|
2021-08-10 22:07:06 +00:00
|
|
|
ax "${number}"
|
2021-08-07 16:14:59 +00:00
|
|
|
rm -f "${number}"
|
2021-08-10 22:07:06 +00:00
|
|
|
bash position.sh reset
|
2021-08-07 16:14:59 +00:00
|
|
|
echo "Are you ready to continue? (yes/no)"
|
|
|
|
read input
|
|
|
|
if [ "$input" != "n" ] && [ "$input" != "no" ]
|
|
|
|
then
|
|
|
|
echo "Continuing with next frame..."
|
|
|
|
else
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|