In Rhino 8, would it be possible to add a command to global replace materials in a model?
That feature is for material organizing in large projects, since after merging models from different sources, there may be several duplicate materials.
I tried to script and posted this a year ago, but it doesn’t work as I wish. This script can’t replace materials assigned to layers and nested blocks. In large projects the script will cost minutes.
RenderMergeIdenticalMaterials should help with the duplicates.
This command is useful when several materials share identical settings.
But there is another more common scenario: suppose in an architectural design project, I need to obtain a part of the model for a certain project from five different colleagues to assemble a complete project model. Without reliable project material management, the merged model may have five different window glass materials with subtle transparency differences and five flooring materials with subtle color differences. These materials are assigned to nested components or layers. In this case, I would need a significant amount of effort to integrate the materials. Therefore, the best approach is to use a command that can globally categorize and merge materials.
This seems to me the shortest route to happiness here. I understand the request, and I’ll make a bug track item for the developers, but practically speaking, sorting out the materials among your colleagues may be a faster route, unless it turns out there is something simple I am overlooking or forgetting.
@Miracle_arc -would a reasonably workflow be: make a multi-selection from all the materials in the file, then make a single selection from the same list, and apply the last to all of the objects that have materials from the first selection. Are the replaced materials removed or only replaced on the objects?
Yes, comprehensive material management is the ultimate solution. However, the situations I mentioned above have been encountered many times in practical projects I have experienced. I believe this is also why Vray and UE4 provide a similar global material replacement command.
Here how it works at V-Ray for Rhino - the user select a material A and choose “Use As Replacement” and than he select the materials he want to remove and here he choose “Replace All References”. Now, all materials got material A. Maybe something for the Rhino material workflow too.