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…
very creative! however, I may have quite a few models and that's why I'm looking for a script to save time... it will help me avoid attaching the objects of each model, and especially save me from re-IDing.
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.
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!
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
I'm not sure about a script, but if you attach them all with edit poly, you'll get a "merge IDs" dialogue that'll combine them for you. I'm sure it's scriptable, but if you can live with them as one object, you may not need to even do that much.
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…
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…