Condense by Material

2 votes
Version: 
1.25
Date Updated: 
11/16/2014

This script condense objects with the same material, convert them into Editable Meshes, optimize the geometry and rename it as its material. If you select a large number of objects (+5k) it can take some time but it is crash-proof (so far). Specially useful in case you import architectural files from .3ds or other format and the file contains Material information. At the end you will have the same number of objects as the materials you had (e.g. Brick, Glass, Frames, Wood, etc.) Enjoy :)

v1.25 -Objects without material now receive a "Default_Material".

            -Fix crash when applied to only to cameras or lights.

            -Optimized code for faster results.

 

 

Additional Info: 

Installation: Go to “MaxScript” menu and select “Run script”. Select the file and click “Open”. Then go to “Customize” menu, and select “Customize user interface”. In the new window, select tab “Toolbars”, in “Category” select "Tools”. There you will find "Convert by Material". Now you can drag and drop it in the toolbar. Save changes before closing the "Customize User interface" window. Enjoy :)

Version Requirement: 
Max 2012-14
AttachmentSize
condense_by_material_v1_25.ms3.58 KB

Comments

Comment viewing options

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

very useful script. Thanks!

very useful script. Thanks! Can you make a script that condenses the Multimaterial by using texture names please? That would be GREAT

Comment viewing options

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