Allow second argument to define frame to start on
This commit is contained in:
parent
6349010c51
commit
adc8b899ed
8
loop.sh
8
loop.sh
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#field guide
|
#field guide
|
||||||
|
|
||||||
|
if [ "${2}" == "" ]; then
|
||||||
name=`basename "${1}"`
|
name=`basename "${1}"`
|
||||||
bash position.sh set
|
bash position.sh set
|
||||||
ax guides/guide_all.svg
|
ax guides/guide_all.svg
|
||||||
|
@ -19,9 +20,15 @@ then
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
i=0
|
||||||
#files in dir
|
#files in dir
|
||||||
for svg in "${1}"*.svg ; do
|
for svg in "${1}"*.svg ; do
|
||||||
|
let "i=i+1"
|
||||||
|
if [ "${2}" != "" ] && [ "${i}" != "${2}" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
filename=`basename "${svg}"`
|
filename=`basename "${svg}"`
|
||||||
name=`echo "${filename}" | cut -d'.' -f1`
|
name=`echo "${filename}" | cut -d'.' -f1`
|
||||||
num=`echo "${name}" | awk -F'_' '{print $(NF)}'`
|
num=`echo "${name}" | awk -F'_' '{print $(NF)}'`
|
||||||
|
@ -30,6 +37,7 @@ for svg in "${1}"*.svg ; do
|
||||||
ax guides/guide_marks.svg
|
ax guides/guide_marks.svg
|
||||||
number=`mktemp`.svg
|
number=`mktemp`.svg
|
||||||
node ./numbers/ -n "${num}" -o "${number}"
|
node ./numbers/ -n "${num}" -o "${number}"
|
||||||
|
ax "${number}"
|
||||||
ax "${svg}"
|
ax "${svg}"
|
||||||
rm -f "${number}"
|
rm -f "${number}"
|
||||||
bash position.sh reset
|
bash position.sh reset
|
||||||
|
|
Loading…
Reference in New Issue