summaryrefslogtreecommitdiff
path: root/filebrowser/list_to_cubes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'filebrowser/list_to_cubes.sh')
-rwxr-xr-xfilebrowser/list_to_cubes.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/filebrowser/list_to_cubes.sh b/filebrowser/list_to_cubes.sh
new file mode 100755
index 0000000..5de89a6
--- /dev/null
+++ b/filebrowser/list_to_cubes.sh
@@ -0,0 +1,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