Решил поразбираться с maxscript, есть проблемка.
Есть кухонный шкаф, состоящих из нескольких деталей, обьединенных в группу.Имя группы,
допустим 555.
В хелпе есть вот это
----------------------------------------------------------------------
Example:
p=[1000,1000,1000]
for i = 1 to 5 do box posrandom p -p) -- create some boxes
savemaxfile "mergetest.max" -- save to file
for obj in objects do obj.name = "_"+obj.name -- rename the boxes
objects.pos += [0,-1000,0] -- move them off to the side
fobj_names = getmaxfileobjectnames "mergetest.max" -- get the object names from the file
deleteitem fobj_names 3 -- delete the third name from the array
mergemaxfile "mergetest.max" fobj_names #select -- merge in the objects and select them
selection.count -- should be 4
objects.count -- should be 9
_____________________________________________________________________________
Но здесь все сделано через обьекты. Как заставить скрипт присоединить всю группу
сразу??
И есть ли параметры выравнивания группы относительно группы???
Есть кухонный шкаф, состоящих из нескольких деталей, обьединенных в группу.Имя группы,
допустим 555.
В хелпе есть вот это
----------------------------------------------------------------------
Example:
p=[1000,1000,1000]
for i = 1 to 5 do box posrandom p -p) -- create some boxes
savemaxfile "mergetest.max" -- save to file
for obj in objects do obj.name = "_"+obj.name -- rename the boxes
objects.pos += [0,-1000,0] -- move them off to the side
fobj_names = getmaxfileobjectnames "mergetest.max" -- get the object names from the file
deleteitem fobj_names 3 -- delete the third name from the array
mergemaxfile "mergetest.max" fobj_names #select -- merge in the objects and select them
selection.count -- should be 4
objects.count -- should be 9
_____________________________________________________________________________
Но здесь все сделано через обьекты. Как заставить скрипт присоединить всю группу
сразу??
И есть ли параметры выравнивания группы относительно группы???