Is there quick/stable way to remove all hierarchy in a *.max file?

Is there any code line to remove all hierarchy in a max scene faster (and more stable) than doing "New>>Don't Save>>Keep Objects" procedure?

I saw this mentioned in a old topic but they didn't make it to the end:
scriptspot.com/forums/3ds-max/general-scripting/new-keep-objects-no-prompt

I've got several of file need do this (not automatically) but manual when a person open the given file to work he needs remove all hierachy. But 3ds max was hanged/crashed by doing so. Is there anyway to run this steps without hang/crash on those files. Thanks for reading.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
TsveTan's picture

mergeMAXFile

I think this option can be achieved using merge function. Try it manualy (trough max interface) to see if you can load successful hierarchy, animation, materials etc. Then maybe one from the scripters here can write it, it is a short solution.

nnq2603's picture

not merge

But I want remove all hierarchy as the way "New>>Don'tSave>>Keep Objects" does, not loading them. Might be my bad English make you misunderstand the issue here.

sable806's picture

Explanations

What do you call hierarchy ?

Layers structure, parents structure, ... ?

nnq2603's picture

This's what I think about it...

Hierarchy in this 3ds max dialogue box - imgur.com/DyXSj1Y

I'm not a script coder so I'll try to explain what I mean. There're files that I try run all the Cleaner type scripts but they only decrease file size to some point. After that point, there's no script I could find to remove junk or unnecessary data on max file. There's file with a simple object with filesize like 300MB and only procedure "New>>Don't save>>Keep Objects" restore it to <100KB (no any remaning notetracks, animalayercontrol, particleview, reactor collisions, linkcomposite etc...).

So I wondering what left in those files that no script could purge? New scene (Keep objects only) seems only way be able to remove those last junk in a 3ds max scene (of course with the cost you lost all key/animation, links, group, etc...). But sometime I've to clear up the file to its optimized size before go on next step.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.