--- Script to align 2 array of groups of randomly with each other i get an error "-- Unknown property: "transform" in undefined <<"
rollout align2groups "align2groups" width:100 height:103
(
button btn1 "Commit" pos:[11,53] width:82 height:18
button btn2 "Array1" pos:[11,5] width:82 height:16
button btn3 "Array2" pos:[11,29] width:82 height:16
button btn4 "Undo" pos:[11,79] width:82 height:18
local ar1
local ar2
on btn2 pressed do
(undo on
ar1 = selection as array)
on btn3 pressed do
(ar2 = selection as array)
--absolute
on btn1 pressed do
(
for i = 1 to ar2.count do
(
obj1 = ar1[i]
obj2 = ar2[i]
obj1.transform = obj2.transform
)
)
on btn4 pressed do
(
max undo)
)
Createdialog align2groups width:100 height:103
--- Any help in sorting this out will be much appreciated thanks
3dmaxdesign 2011 64-bit
i7 2600 windows 7 64-bit
quadro 600