PDA

View Full Version : How to import a .MTL file



daveberk
07-17-2006, 01:01 PM
I recently purchased a .OBJ model and it came with a .MTL material file. Does anybody know how to import a .MTL file into Maya?

sunder
07-17-2006, 01:04 PM
It should go in automatically. MTL is the material information for the OBJ model.

Nojoy
07-17-2006, 02:00 PM
In some versions of maya you might have to go to your plugin manager and autoload or load the obj plugin. Maybe that's the reason you cant import your model.

axotus
09-11-2010, 04:21 PM
It may be a problem with the OBJ file itself. Open it up with a text editor (e.g. Notepad). The first line should include the path to the MTL file (which should be in the same folder as the OBJ).
The first line after comments should include "mtllib" followed by the name of the MTL file.
See the example.

First couple lines of a basic OBJ file when opened in Notepad:

# 3ds Max Wavefront OBJ Exporter v0.94b - (c)2007 guruware
# File Created: 11.09.2010 17:08:45

mtllib head1.mtl

#
# object face
#

v 24.1621 37.7614 41.1268
v 25.6423 38.9767 42.1235
v 25.3978 39.4876 41.8800
v 23.3679 37.9557 40.4328