Notifications
Clear all
[Closed] Accessing objects in a for-loop
Page 2 / 2
Prev
Dec 06, 2007 9:01 pm
(
local baseBox = box()
local boxArray =#()
baseBox.pos += [0,0,-5]
fn makeMoreBoxes =
(
local anotherBox = box()
anotherBox.scale = [random 0.5 1, random 0.5 1, random 0.5 1]
anotherBox.pos = [random -3 3, random -3 3, random -3 3]
anotherBox.rotation = eulerangles ( (random 1 180) (random 1 180) (random 1 180) )
)
for i = 1 to 3 do
(
local newBox = makeMoreBoxes()
append boxArray newBox
)
ProCutter.CreateCutter boxArray 3 True True False True True
ProCutter.AddStocks boxArray[1] #(baseBox) 1 1
gc()
)
might help,
Page 2 / 2
Prev