Thanks for your help!
That was exactly my issue, I had been using ${#frames} when I should have been using ${#frames[@]}, so the code was iterating over blank entries and giving me the error.
Sorry, I suppose this was more of a Bash scripting question than it was an FSL question.
Also, Matthew you mentioned including a permanent test to determine if ${xforms} is the same size as ${frames}.
Would you recommend something like:
if [ ${#xforms[@]} == ${#frames[@]} ]; then ?
I'm somewhat new to Bash scripting, so any advice is appreciated.
Cheers,
Dan
|