Importing OBJ Files
in The Commons
I need help!!! I keep getting the process wrong for importing OBJ files. I can never remember what needs to match between the OBJ and MTL files so that the textures import in with the OBJ file. I know that I have to open the OBJ file in a text editor and make sure wording on one of the lines matches the name of the MTL file or something like that, but I can't ever remember if its the name of the MTL file that has to match whats in the OBJ file, or change the wording in the OBJ file. Please let there be an expert who knows exactly..........lol. Thanks

Comments
some you can put the obj and mtl in the same folder as the textures
others even with the updated changelog mentioned by Richard Haseltine in another thread just won't populate
I don't know the answer, sometimes it can be a prefix which I discover in Poser or Carrara as they ask you to find the file and you can see how the name differs but find and replace in notepad will fix it for them but not DAZ studio
the fact other programs look for them at least suggests the obj file is worded correctly
Actually Wendy, I have been able to use notepad in the past to change names in DAZ and it worked, but I can never remember what needs to be changed. Do I open the OBJ file in notepad and change the line to what the the MTL file is actually named as, or do I change the name of the MTL file to match what is already in the OBJ file? do I have to include(.mtl) in the name in the OBJ file reference line?
The OBJ file has a line beginning 'mtllib...'. which points to the material library (.mtl) file. This may well specify just the name of the .mtl file, in which case the OBJ and MTL files need to be in the same folder. If this defines the full path to the file, then they can be in different folders.
Note that spaces in the path will likely cause problems, you will need to make sure these are not required. On Windows, you may also find you need the separator in the path to be double backslashes ( '\\' ) instead of just a single backslash ( '\' ).
OK got it! Working now. The OBJ file has to have mtllib then a space then the name of the actual MTL file then (.mtl) included in the name. I placed all files (obj, mtl and textures) in the same folder. Thank you for your help guys!!