summaryrefslogtreecommitdiff
path: root/filebrowser/list_to_cubes.sh
blob: 7f6e7942326f4c16221e3a1b4a48cf1452d23bb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# blank lines deleteallexcept epoch
# expected input format:
#
# line1
# line2
# line3
#
# line1
# line2
while read -r line;do
 if [ "_$line" != '_' ];then
#  ../tools/obj2hackvr.pl "$line" ../meshes/cube.obj
  printf "%s addshape 3 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