

The script has two main modes of operation:Ī1) Select (or -recursively- scan for) a material library, then process it as per the chosen options: copy and repath the textures to the assets' folder in the library, render the previews, and copy/refresh the material library file in the V-Ray Library folder.Ī2) Select (or -recursively- scan for) a Max file, then process it as per the chosen options: copy and repath the textures to the assets' folder in the library, render the previews, and create/refresh a material library file in the V-Ray Library folder.īoth buttons can be used, and the script will process the. This may or may not change in the future. So, for now, no custom locations for new material libraries, nor the chance to choose custom location for the assets.

Should it not find it, it will warn and close. The script expects the Swatch max file to live inside the correct assets folder in the v-ray install. Should this not be the case, the script will warn and close. The script will try to detect the material library installation folder.Ĭurrently, the script expects this library to exist and be valid. *)The script can instead be opened and run from the maxscript editor, or from the maxscript/scripting menu. Code: C:\Program Files\Chaos Group\V-Ray\3ds Max 2021\assets\You may need elevated privileges to write in there.
