Author Topic: Specifying generic paths to files in .mtl file  (Read 5660 times)

0 Members and 1 Guest are viewing this topic.

Offline remoteless

  • Newbie
  • *
  • Posts: 4
Specifying generic paths to files in .mtl file
« 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",
-------------------------------------------

guest84672

  • Guest
Re: Specifying generic paths to files in .mtl file
« Reply #1 on: September 13, 2010, 04:43:30 pm »
I don't think this works. You will need absolute paths.

Offline JTrusty

  • Jr. Member
  • **
  • Posts: 54
    • Gear Sector
Re: Specifying generic paths to files in .mtl file
« Reply #2 on: September 14, 2010, 10:40:50 am »
Quote
I 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.

 :)

guest84672

  • Guest
Re: Specifying generic paths to files in .mtl file
« Reply #3 on: September 14, 2010, 11:22:31 am »
excellent - good to know!

Thanks,
Thomas

Offline remoteless

  • Newbie
  • *
  • Posts: 4
Re: Specifying generic paths to files in .mtl file
« Reply #4 on: September 14, 2010, 02:24:44 pm »
JTrusty, thanks for the insight.
Wish Luxion had used standard markup language conventions.