I have a custom OnAssignMaterialModel script that assigns specific materials within my project to the model based on the name of the material that is coming out of Maya. My script is working great, and doing everything that I want it to do, but I have noticed a problem. When I reimport that fbx after creating some new materials, I will see them get assigned to that model just fine on my screen. However, when I push that model up to our version control and someone else pulls down my changes, they will see that model in the same state they had originally had it in. They then have to do a reimport of that model themselves, so that the script will run once again, in order to see the correct materials on that model.
I had originally assumed that the mapping for which material is assigned to each element within each mesh of the model would be contained in the meta file, but after looking at the meta file it is obvious that isn’t the case. Which makes it very painful to work with across multiple work stations when each model takes 8-10 minutes to import.
Where does the information live that is mapping which material is assigned to an element on a mesh when you import in an FBX?