--关于文件合并的一个文件。
p=[100,100,100]
for i = 1 to 5 do box pos:(random 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
还有
mergebonesName = for i in selection collect i.name;
holdMaxFile()---暂存场景如果出差了 这个回复方法不错
myholdmaxfile = (GetDir #Autoback)+"\\"+"maxhold.mx" --创建一个文件。
mergemaxfile myholdmaxfile mergebonesName #prompt #skipDups #alwaysReparent #mergeDups
----合并文件当中的东西。