Hello!
I need to divide max-file into multiple files by names of objects and groups. Script works fine with objects, but not with groups, it operates with group contents and saves each sub-object separately. I whant to save groupped objects into one file with name of group.
if (selection.count > 0) do(
for obj in selection do (
CenterPivot obj
obj.pivot.z = obj.min.z
obj.pos = [0, 0, 0]
nameofmaxfile = maxFilePath + obj.name + ".max"
savenodes obj (nameofmaxfile)
)
)
miauu · 2019-03-13