xynaria
06-17-2003, 02:33 PM
Ok I've finally put my toe in the water of max script.. all was eventually sinking in sort of till I got to the section on loops. I know I'm probably making an obvious error but I can't find a way of understanding why this is failing.. it is straight from the help file.
Going from the 'learning maxscript'
deleted everthing done so far and entered
mybox = box()
which of course made a default box at 0,0,0
this was merely to try and fully understand the command:
for i = 1 to 5 do
(
box_copy = copy mybox
box_copy.pos = [i * 50, 0, 0]
)
which in theory creates 4 copies of the box.. but the listener returns:
-- Syntax error: at ), expected <factor>
-- In line: )
@ [0.000000,0.000000,0.000000]
Help in clearing this mental block greatly appreciated. :)
Going from the 'learning maxscript'
deleted everthing done so far and entered
mybox = box()
which of course made a default box at 0,0,0
this was merely to try and fully understand the command:
for i = 1 to 5 do
(
box_copy = copy mybox
box_copy.pos = [i * 50, 0, 0]
)
which in theory creates 4 copies of the box.. but the listener returns:
-- Syntax error: at ), expected <factor>
-- In line: )
@ [0.000000,0.000000,0.000000]
Help in clearing this mental block greatly appreciated. :)
