importing multiple instanced materials

When we import an xmesh that had a multisub material with instances of the same material in it, in maya they dont come in instanced, but duplicated like:

testNS:xmesh_Thinking001_1MaterialSet_eye_MTL
testNS:xmesh_Thinking001_1MaterialSet_eye_MTL1
testNS:xmesh_Thinking001_1MaterialSet_eye_MTL2

etc.

So we usually have to fix it ourselves. Could this be handled by the importer?

Thank you for your report!

What does the .matIDMap file contain in this case?

Stuff like this:

[MaterialNames]
0=Particle
1=fx1_MTL
2=fx2_MTL
3=fx3_MTL
4=fx4_MTL
5=fx5_MTL
6=sim_MTL
7=fullBowl_MTL
8=fx1_MTL
9=fx2_MTL
10=fx3_MTL
11=fx4_MTL
12=fx5_MTL
13=sim_MTL
14=bone_MTL
15=eye_MTL
16=eyelens_MTL
17=greensuit_MTL
18=leatherA_MTL
19=organs_MTL
20=skin_MTL
21=teeth_MTL
22=fx1_MTL
23=fx2_MTL
24=fx3_MTL
25=fx4_MTL
26=fx5_MTL
27=sim_MTL

Thank you! This will be fixed in our next release.

If you’d like to get the fix sooner, please let me know, and I’ll post it for you.

No worries, we have fixed internally already, so we will just update when you guys release