Specifying generic paths to files in .mtl file

Started by remoteless, September 13, 2010, 03:17:04 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.


I created five custom materials, each with a different image label. Since this is specific to a client,I saved this as :
"C:\Documents and Settings\<User Name>\My Documents\KeyShot\Materials\clientA.mtl"

The five images used as label maps for the materials are in a folder called:
"C:\Documents and Settings\<User Name>\My Documents\KeyShot\Labels\"

Just so my co-workers can use the same material set, can I specify a generic path to the root folder in the .mtl file? For example:
"texture" "..\Labels\Label1.tif",


I don't think this works. You will need absolute paths.


QuoteI don't think this works. You will need absolute paths.

Not true. I do it all the time in my material files.

You can't specify relative paths, however, you can use "generic" paths.

Here is an example from my material file:

"texture" "wood\ash\ash_01_NRM.jpg",

Where wood is a directory in my textures folder.

Hope that helps.




JTrusty, thanks for the insight.
Wish Luxion had used standard markup language conventions.