Maya Duplicating Materials on Import

Anonymous

Maya Duplicating Materials on Import

Anonymous
Not applicable

Trying to move a project from Maya LT to Maya (finally upgraded). Due to the polygon export limit on LT, I broke up everything logically and exported out the FBXs with embedded media to preserve materials. Then i copied all the texture files into the new SourceImages folder. Everything is working ok, but every time I import an asset it duplicates the material if its already in the scene. Is there anyway to stop this from happening? I just want on M_ChairPlastic material, not one for every time an asset with that material gets imported. So any way to tell maya to merge these materials on import or after the fact would be extremely helpful. Thanks in advance.

0 Likes
Reply
5,258 Views
18 Replies
Replies (18)

damaggio
Mentor
Mentor

Hi Alex, in the import options there's a checkbox for Remove duplicate shading networks. try that again.

0 Likes

Anonymous
Not applicable

Thanks for the advice, I did try that however it just duplicates the material in ...001, ...002 fashion. 

0 Likes

damaggio
Mentor
Mentor

Use these settings...

0 Likes

Anonymous
Not applicable

CurrentImportSettings.PNGLooks like we are on the same page. It still duplicates the material on import.

0 Likes

damaggio
Mentor
Mentor

Are you windows or mac?

0 Likes

Anonymous
Not applicable

Windows 10. 

0 Likes

damaggio
Mentor
Mentor

It could be the way these files were exported, open a new scene, create a primitive with shader and export a ma file, then import back several  times to see if is working on windows 10.

0 Likes

Anonymous
Not applicable

Well I did export them from Maya Lt as FBX2018 files. Embedded media. So should I export a .ma file or FBX to match those circumstances?

0 Likes

damaggio
Mentor
Mentor

Yeah try that, I just tried with FBX but it didnt work...but works if it is a Maya scene, there must be a setting for the FBX but I can't seem to uncover.

Sorry Alex , let us know if you found a way, I gotta get back to work.

0 Likes

mspeer
Consultant
Consultant

Hi!

 

@Anonymous and @damaggio .

 

If using Embedded Media this will (can't) work, because when importing the file, each files media content will be extracted to a separate temp folder, so the file paths do not match and the shading networks can't be merged.

0 Likes

Anonymous
Not applicable

Works fine with .ma files, but thats not something LT can generate unfortunately. 

0 Likes

Anonymous
Not applicable

Can you clarify what you mean by "it will (can't) work"? Is there a better method for moving a scene from Maya LT to Maya that won't result in mass duplication of materials?

0 Likes

damaggio
Mentor
Mentor

Is working with the OBJ format Alex.

0 Likes

mspeer
Consultant
Consultant

Hi!

 

Simply don't use "Embed Media".

As long as the whole network and all paths are identical, merging shading networks will work correct.

Anonymous
Not applicable

Thank you SO MUCH! Went in to work early this morning and it worked! Can't express how much I appreciate yours and everyone's help. 

0 Likes

Anonymous
Not applicable

I was wrong. It worked on the first few assets, but it started duplicating again on import.

0 Likes

Anonymous
Not applicable

It seems to be working randomly. Some assets come in fine without duplicating materials, others come in a duplicate, some come in and use duplicates instead of originals. Its a mess. There has to be a way to migrate from Maya LT to Maya without all this headache.

0 Likes

mspeer
Consultant
Consultant

Hi!

 

If it doesn't work then there is a difference somewhere in the networks.

0 Likes