Maya 2018/2017 - File Path Editor case-sensitive

Maya 2018/2017 - File Path Editor case-sensitive

Anonymous
Not applicable
2,097 Views
9 Replies
Message 1 of 10

Maya 2018/2017 - File Path Editor case-sensitive

Anonymous
Not applicable

Hello guys. I got a little problem with Maya 2018.02 and Maya 2017.05 (tested on both). When I import a .obj model for my scene Maya is saying that there is missing textures (which is normal). Then I wanna show a path with File Path Editor. But the problem is that File Path Editor is very case-sensitive and textures in this obj file are named randomly with upper and lower cases. For example in maye texture have name AAA.tga but on my local disk is aaa.tga then they will not match 😞 This won't be a problem if I have to rename few textures. But some files are containing almost 200 textures and 120 of them is not matching! So is there is any possibility to solve that problem?

(sorry for my English if i wrote something wrong)

0 Likes
Accepted solutions (1)
2,098 Views
9 Replies
Replies (9)
Message 2 of 10

sean.heasley
Alumni
Alumni

Hi @Anonymous and welcome to the community!

 

This is unusual cause Maya shouldn't have a problem with name changes in the texture.

 

Just to clarify, you're going to the Material Attributes and manually changing the texture there right?

 

If that doesn't work, you could try assigning a new material and then reassigning the textures to it.

 

Please let me know if this helps or if you need any more assistance!

 

 

If one or more of these posts helped answer your question, please click Accept as Solution on the posts that helped you so others in the community can find them easily.

 

 

 

Kudos are greatly appreciated. Everyone likes a thumbs up!

0 Likes
Message 3 of 10

mspeer
Consultant
Consultant

Hi!

 

Maya in general is not case-sensitive, so changing upper to lower case for file textures has no effect, but the File Path Editor is case sensitive, so it will not find some texture in other places if they do not match exactly, although this would not be needed for Maya.

 

Please report this problem (bug?) to Autodesk.
Help -> Speak Back -> Report a Problem

 

 

Maybe an option that can be disabled would be fine ("search case-sensitive")

 

 

The only solution would be to check the exporter, cause if the same case is used in the exported file for the texture name as it's being stored on the system there would not be a problem.

0 Likes
Message 4 of 10

Anonymous
Not applicable

Hm, I think that i need to explain this more. You can check what I'm doing on this video below.

 

 

At the end you can see that some textures are resolved but others are not. This is because unresolved textures are named in Maya with upper-cases but on my local disk the names is for example: "NW_Nature_SeeStrand_01" (containing lower and upper-cases). I want to tell File Path Editor to match missing textures only by name and ignore lettersize. Is there possibility for doing that? If not, maybe you'll have other solution?

0 Likes
Message 5 of 10

mspeer
Consultant
Consultant

Hi!

 

Please upload the .mtl file from the OBJ file used in your first screenshot or from your screencast.

0 Likes
Message 6 of 10

Anonymous
Not applicable

Here you go:

Part14.mtl

 

(need to put this on google drive because attachment do not accept mtl extension)

0 Likes
Message 7 of 10

mspeer
Consultant
Consultant

Hi!

Theses are the file names directly taken from your .mtl file.

 

 

- NW_NATURE_SEESTRAND_01.TGA
- DK_nature_wasteland_waldboden_trans_01.tga
- NW_City_BodenDielen_01.tga
- NW_City_StoneWall_01.tga
- NW_Harbour_WoodCrate_02.tga
- NW_MISC_CAVEWALL_02.TGA
- NW_MISC_SWAMPWATER_01.TGA
- NW_Misc_Bauernhaus_01.tga
- NW_Misc_Bauernhaus_02.tga
- NW_Misc_Bauernhaus_03.tga
- NW_Misc_Bauernhaus_04.tga
- NW_Misc_Roof_01.tga
- NW_NATURE_KIES_01.TGA
- NW_NATURE_PATH_06.TGA
- NW_NATURE_PATH_06_TCROSS.TGA
- NW_NATURE_SEESAND_01.TGA
- NW_NATURE_STEIN_01.TGA
- NW_NATURE_STEIN_02.TGA
- NW_NATURE_STEIN_03.TGA
- NW_NATURE_TRANS_KIES_WALDBODEN_01.TGA
- NW_NATURE_TRANS_KIES_WALDBODEN_01.TGA
- NW_NATURE_WALDBODEN_03.TGA
- NW_NATURE_WBODEN_VAR_03.TGA
- NW_Nature_Acker_01.tga
- NW_Nature_SweetGrass_01.tga
- NW_Nature_Waldboden_Trans_Acker_01.tga
- OW_Surface_Wasteland_04.tga
- OwOdWat_A0.tga

 

For me this looks like the problem is in an other application or happens during export. The File Path Editor does not change file names to upper-case, they are already upper-case before importing the OBJ-file to Maya.

0 Likes
Message 8 of 10

Anonymous
Not applicable

Yes I know that before, previous artists who were worked with that files in blender didn't mention about letter size in texture names because Blender is not case-sensitive while its loading textures. Unfortunately Maya does and so I can't load this textures automatically by File Path Editor but I need to change letter size of each texture which is taking a lot of time!

0 Likes
Message 9 of 10

mspeer
Consultant
Consultant

Hi!

 

Workaround:

 

A) Place the obj file inside the same folder as the textures and import from there.

 

B) Place the texture files inside the same folder as the obj and import from there.

(You can copy the textures to a new location later by using File Path Editor - Auto Resolve)

 

0 Likes
Message 10 of 10

Anonymous
Not applicable
Accepted solution

Okay I found the solution. I asked my friend to write me a simple script in c# which is changing lines of texture name in .mtl file.