PDA

View Full Version : merge objects by layer


Chris
08-30-2006, 10:04 PM
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? :)

AlpineMan
08-30-2006, 10:59 PM
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.

Bobo
08-30-2006, 11:05 PM
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? :)

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.

Chris
08-31-2006, 01:17 AM
I figured I might have to do some kind of jiggery pokery like that - thanks for your help guys! :)

CGTalk Moderation
08-31-2006, 01:17 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.