Hello, I've been searching and didn't found something doing this, maybe some of you know if this exist or how it can be done.
All faces on all selected objects (these objects are using different multimaterials) pointing to the material named "Grass" before the script (id 2 5 and 1 in the exemple) are, after the script, assigned to id 30, and all the objects are using a single multimaterial.
I have a scene organized like this :
Id - name - Sub-Material
[Multimaterial A]
[1] [ ] [Dirt]
[2] [ ] [Grass]
...
[12] [ ] [Rock]
[Multimaterial B]
[1] [ ] [Dirt]
[5] [ ] [Grass]
[25] [ ] [Rock]
[Multimaterial C]
[1] [ ] [Grass]
[2] [ ] [Dirt]
[25] [ ] [Rock]
etc...
after running the script,I need all the selected objects to use :
- [MY Multimaterial]
- ...
- [30] [ ] [30-Grass]
- ...
- [42] [ ] [42-Dirt]
- ...
- [46] [ ] [46-Rock]
Where the correspondance [ID]<-->[SubMaterial] has been defined by me, the renaming here is not mandatory, but I will name the material this way in the future, so this naming convention could be used as input for the script.
It's a kind of "organized condense materials"
Thanks !
barigazy · 2014-01-29