Hi Folks, I have a model with several separate materials. Is there a script for Max 2012 that will condense or consolidate them into one Multi-Sub material and update the model with the relevant material ids? I have a bunch of models to do this for and it would really speed me up. Thank you!
See if this new script suits your needs. I've also fixed a bug that added duplicate material IDs to the multisub if you selected objects in a certain way. Objects that had the same material applied to them that were selected right after one another would cause this. macroscript objectsToMultiSubcategory:"BCTools"( if…
Sorry small bug... This should work but again its not bullet proof. I just dont have the time to get it to that point but I hope this helps.macroscript objectsToMultiSubcategory:"BCTools"( if selection.count >= 1 then ( local selectedGeom = selection as array local newMat = multisubmaterial() newMat.name = "newMat"…
Here's a real quick script I wrote. It doesn't have a lot of error checking but I dont have the time to spend on it. Just select some geometry and run the script. It will loop through the selection, add a material modifier, sets the mat id of that modifier to a number, takes the current material and adds it to a multisub…
You could clone everything, merge the clones, then put that material on the originals. You'd have to re-ID after, but you could always "select by material" or "select similar" and do them in waves.
Bryan, you are a beacon of awesomeness :D it's creating the multisub material perfectly, but still assigning the wrong material to the objects. anyway, I understand that you have better things to do, anyway it's progress! :D EDIT: Actually, it is right about 60% of the time, so that's a big help combined with auto…
Sorry WhiteNorthStar but I cant replicate this in my test scene. Its possible that you have something in your scene that im not accounting for. Do you have anymore info you can give me on how this is being used in your scene? Types of materials? or objects that already have multiple mat IDs? I am assuming that all the…
No problem. I should mention that this script assumes that each object has a different material and there are not any duplicates. If you have duplicates then I would need to check for those to see if they are already in the multi/sub or not and then assign the right matid.
Bryan, I seem to keep coming back to needing this solution, and there are often duplicate materials in my scenes. If you have time, I'd be very grateful if you would add this functionality to your script. Again, thank you for your awesomeness :D