Material Combiner
Material Combiner rollout
This script will create a
multi-sub material from multiple objects in a scene. It will also re-id
every polygon to the new material. Because merging objects will create
duplicate materials this was written to clean materials for easier
modifications to the materials.
Instructions:
This script will only work
with multi-sub materials. So it's best to select the objects you want
to combine the materials into and press "Convert". This will convert
any Standard Material to a multi-sub material. (Don't worry about the extra
slots the next step will clean all this up.)
Now with those objects
selected click "Make Master Material" This will create a new multi-sub
material in the Slot # spinner. It will filter out all materials that
don't have a bitmap in the diffuse channel.
If you are happy with the
material it creates then click the "RE ID polys". This will go through
each object and assign the correct ID to each polygon to match up with the
master material. Note that this will collapse your objects to editable
meshes. It will also try to rename the material to the name of the
bitmap. But you need to put the path in the path text-box.
ID Info rollout
The ID tools will show you
what id's are being used on an object and display the bitmap.
Instructions:
Select an object and press
"get number of id's".
This will list all the id's
used in that object. If you select an ID in the listbox it will select
the polygons using that ID and show you what texture and name is being used
on that ID. If you double click the ID it will open up the texture in
a new window and add an unwrap uvw to the modifier stack. |