*)The script can instead be opened and run from the maxscript editor, or from the maxscript/scripting menu. The script will try to detect the material library installation folder.Ĭurrently, the script expects this library to exist and be valid.
Should this not be the case, the script will warn and close. The script expects the Swatch max file to live inside the correct assets folder in the v-ray install. Should it not find it, it will warn and close. So, for now, no custom locations for new material libraries, nor the chance to choose custom location for the assets. This may or may not change in the future.
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.
The defaults can be overridden for both resolution and quality (more on this further down.): from 64 to 4096px can be rendered in final or preview quality.