Notifications
Clear all

[Closed] texture path relative to .max file

Is there a way to make your texture path relative to your .max file?
I’m not working with the max project directory structure since I have to conform to the naming convention at my work.
I would like to place all my textures in the ‘TEX’ directory which is in the directory my .max files are in. Now, when the project are moved (for backup) all my texture links are gone.
Is there a way to make Max automatically search in the ‘TEX’ directory of each project?

thanks

2 Replies

Hi Harm,

I think the short answer is no. You can however keep all your maps in the same directory as your max file and it will work ok, just make you bitmap filenames pathless. You can use a code for this:


$.material.diff_color_map.filename=filenamefrompath $.material.diff_color_map.filename

Did you know that you can re-design your default max directory path structure? Choose customise | Configure User Paths and then export your paths list to a file, that you can then modify to your hearts content.

J.

Well if it’s just a one “every so often” thing (when moving for back up). I would do a small script that collects all bitmaps classes in the scene, extracts the filename, and then looks for that file in the new bitmap folder, replacing the paths. Shouldn’t be too hard.

Alternatively there’s a few tools for fixing bitmaps paths in ScriptSpot.

http://www.scriptspot.com/3ds-max/scripts/filepathfinder-pro-light-versions
http://www.scriptspot.com/3ds-max/scripts/relink-bitmaps