So you want to center all your selected objects to [0,0,0] , save them to a max file, and then set them back to their original position? If so, this should work:
objSel = selection as array
objPos = for obj in objSel collect (obj.position)
for obj in objSel do (obj.position = [0,0,0])
dirPath = "c:/temp/"
if (doesFileExist dirPath == false) do (makeDir dirPath all:true)
saveNodes objSel (dirPath + "objs.max")
for i=1 to objSel.count do (objSel[i].position = objPos[i])
Replies
Is it possible to save each group separately, adding +1 to each next saved name?