KeyShot Forum

Technical discussions => Materials => Topic started by: remoteless on September 13, 2010, 03:17:04 PM

Title: Specifying generic paths to files in .mtl file
Post by: remoteless on September 13, 2010, 03:17:04 PM
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",
-------------------------------------------
Title: Re: Specifying generic paths to files in .mtl file
Post by: guest84672 on September 13, 2010, 04:43:30 PM
I don't think this works. You will need absolute paths.
Title: Re: Specifying generic paths to files in .mtl file
Post by: JTrusty on September 14, 2010, 10:40:50 AM
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.

:)
Title: Re: Specifying generic paths to files in .mtl file
Post by: guest84672 on September 14, 2010, 11:22:31 AM
excellent - good to know!

Thanks,
Thomas
Title: Re: Specifying generic paths to files in .mtl file
Post by: remoteless on September 14, 2010, 02:24:44 PM
JTrusty, thanks for the insight.
Wish Luxion had used standard markup language conventions.