XRef Material library from Max scene
Hi,
I need to create a tool to create a .mat file which contains XRef Materials of all materials included in my current scene.
All works fine in this script but how can I sort the materials by names in the material library?
Thanks
Attachment | Size |
---|---|
xrefmatlib.ms | 1.55 KB |
Comments
.
1. Get all materials - from the library and from the scene(merged, xrefed, etc.).
2. Sort them by name(or by aony other property)
3. Create new library with proper name and put all materials inside it.
4. delete the old library, save the new one
Tools and Scripts for Autodesk 3dsMax