ScriptSpot

Script

Condense by Material

By Nomte · 2014-11-10

Version
1.25
Version requirement
Max 2012-14
Date updated
2014-11-16
Votes
2
External download
External download
Downloads

Tags: attach objects by material condense rename optimize geometry

Description

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 :)

Comments (1)

e_samurai · 2014-11-28

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