Friday, November 16, 2007

new version of script

this version of the script will give you all the node values in the form of a list.

The list is formated as Value, X,Y,Z

x,y = get("grid.size")
print("Cells", x, y)
count = 0

for j = 0, y-1 do

line = ""

for i = 0, x-1 do
value = get("grid.cell", i, j, 0)
a, b, c = get("grid.position", i, j)

line = value

excel("start", "Testing")

excel("cell", 1, count)
excel("value", line)
excel("cell", 2, count)
excel("value", a/100)
excel("cell", 3, count)
excel("value", b/100)
excel("cell", 4, count)
excel("value", c/100)

count = count + 1
end

end