summaryrefslogtreecommitdiff
path: root/filebrowser/list_to_cubes.sh
blob: 5de89a67fe191202a2f3462ff2714bec55afe337 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
while read -r line;do
 if [ "_$line" != '_' ];then
#  ../tools/obj2hackvr.pl "$line" ../meshes/cube.obj
  printf "%s addtriangle 1 0 0 0 1 0 0 0 0\n" "$line"
  printf "%s move 0 %d 0 0 0 0 0 0 0\n" "$line" "$i"
  i=$[i+2]
 else
  printf "epoch deleteallexcept epoch\n"
  i=0
 fi
done