Merge By Layer

299 votes
Version: 
0.5
Date Updated: 
04/07/2011
Author Name: 
Anubis

Merge By Layer 0.4

A self explained script, I think. Enjoy

Additional Info: 

v0.1 - initial version
v0.2 - now dialog resizeble
v0.3 - ugly mistake fixed
v0.4 - now multi-select & merge layers/objects
v0.5 - alphabetic sort added for layers/objects

I has a mail request/wishlist to sort layers in alphabetic order.
I add this option for both - layers and objects lists.
The option should been checked before choose scene file.

v0.5 UI:
MBL v0.5

Version Requirement: 
3ds max 4 and higher
AttachmentSize
mergebylayer.ms2.44 KB
mergebylayer_05.ms2.87 KB

Comments

Comment viewing options

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

i use 2011x64 and now

i use 2011x64 and no containers or groups are in scene. actually it is good if it will merge all relative objects but not empty layers

thank you!

Anubis's picture

confusing but not fatal

What is your Max version and did you use containers? I asking because I suspect that merging via max script is not updated correctly in the last Max versions. I still stay on Max 2009 as I found it as enough scripting stable. If you can find the 'bug' in the code, I'll glad to fix it.

my recent MAXScripts RSS (archive here)

harumscarum's picture

emply layers are merging

when i try to merge one single object - got merged some other layers with no objects in it
here is illustration image attached

PS and i have suggestion - make merged objects or layers visible (unhidden, unfrozed and etc.) even if they was invisible in source file

AttachmentSize
buuug.png 19.08 KB
Script_Butler's picture

Ok...

It seems to work with some files but not others.

I'll see if i can find a reason for why it doesn't work with some. Perhaps its a problem with some plugins we use here. I'll let you know what I find, if anything!

Cheers.

Script_Butler

Anubis's picture

no idea

Hi Script_Butler,

I not hit any problems yet,
so this sounds mysterious to me.

my recent MAXScripts RSS (archive here)

Script_Butler's picture

Finally!

We have been banging on about wanting such a script for ages! Thanks for doing it!

But I seem to be having issues! When I choose a scene file, it seems to want to merge the entire file straight in to max to normal way.......

It doesn't list anything in your script window and just crashes.....

It works on a simple file with a few boxes on layers, but not a more technical file that we have for a big job.

Any ideas what might be causing this?

Cheers.

Script_Butler

Anubis's picture

Ok, i update the script,

Ok, i update the script, enjoy.

my recent MAXScripts RSS (archive here)

titane357's picture

perhaps nothing or the list

perhaps nothing or the list of all objects contained in selected layers...

Anubis's picture

sounds good

just wonder what will display objects (right) list then multiple layers selected (in left list), if display all objects (of selected layers)... is w'd be clear.

my recent MAXScripts RSS (archive here)

titane357's picture

It is just an Idea : - you

It is just an Idea :
- you could select/multiselect in left column layer(s) to merge
then all objects of these layers will be merged
then click merge button
or
- you could select/multiselect in right column object(s) of one selected layer u want to merge.
then click merge button
cheers

AttachmentSize
merge.png 15.99 KB

Comment viewing options

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