Notifications
Clear all

[Closed] merge objects by layer

I have been looking for a way to merge only certain layers from one max scene into the current scene, I cant seem to find any way of doing it. mergeMaxFile has only a name selection option. I guess what I am after is a way of getting layer information out of a max file, similar to how you can get a list of objects with getMAXfileobjectnames… Anyone have any ideas?

3 Replies

The only way to do it is to first export the original scene by layer, and then import it again by layer.
I wrote a script that does just that (as I was trying to fiqure out what scene object was corrupting a max scene).

Chris J.

Open the file you want to merge from, enumerate all objects by layer, saveNodes() to a new file, load the target file to merge into, merge the separate by-layer file. Delete the intermediate by-layer file if you want. Done.

I figured I might have to do some kind of jiggery pokery like that – thanks for your help guys!