Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Run the regular V-Ray installer, but prefix the "Program Files" folder with some temporary directory for all four paths. This gives you a folder that contains everything that V-Ray puts in both the 3ds Max folders and its own Program Files folders.
  2. Copy that temporary folder to some network location (preferably one that also indicates the V-Ray version and/or build number and the 3ds Max version).
  3. Uninstall V-Ray and remove any files that remain after the uninstallation.
  4. In the temporary folder, create a plugin.ini file with the absolute paths to the V-Ray plugins:

    Code Block
    titleplugin.ini
    [Directories]
    VRay=\\server\share\vray_adv_3150136001_max2015max2018_x64.25566\Program Files\Autodesk\3ds Max 20152018\plugins\
    vrayplugins=\\server\share\vray_adv_3150136001_max2015max2018_x64.25566\Program Files\Autodesk\3ds Max 20152018\plugins\vrayplugins\
  5. In the temporary folder, create a .bat file that contains environment variables that are needed by V-Ray and runs 3ds Max with the custom plugin.ini file:

    Code Block
    titlerun_max.bat
    SET PATH=%~dp0Program Files\Autodesk\3ds Max 20152018;%~dp0Program Files\Chaos Group\V-Ray\RT for 3ds Max 20152018 for x64\bin;%PATH%
    SET VRAY30_RT_FOR_3DSMAX20153DSMAX2018_MAIN_x64=%~dp0Program Files\Chaos Group\V-Ray\RT for 3ds Max 20152018 for x64\bin
    SET VRAY30_RT_FOR_3DSMAX20153DSMAX2018_PLUGINS_x64=%~dp0Program Files\Chaos Group\V-Ray\RT for 3ds Max 20152018 for x64\bin\plugins
    SET VRAY_OSL_PATH_3DSMAX20153DSMAX2018_x64=%~dp0Program Files\Chaos Group\V-Ray\3dsmax 20152018 for x64\opensl
    
    "C:\Program Files\Autodesk\3ds Max 20152018\3dsmax.exe" -p %~dp0\plugin.ini
  6. In the temporary folder, create a .bat file that contains environment variables that are needed by V-Ray and runs V-Ray spawner with the custom plugin.ini file:

    Code Block
    titlerun_vrayspawner.bat
    SET PATH=%~dp0Program Files\Autodesk\3ds Max 20152018;%~dp0Program Files\Chaos Group\V-Ray\RT for 3ds Max 20152018 for x64\bin;%PATH%
    SET VRAY30_RT_FOR_3DSMAX20153DSMAX2018_MAIN_x64=%~dp0Program Files\Chaos Group\V-Ray\RT for 3ds Max 20152018 for x64\bin
    SET VRAY30_RT_FOR_3DSMAX20153DSMAX2018_PLUGINS_x64=%~dp0Program Files\Chaos Group\V-Ray\RT for 3ds Max 20152018 for x64\bin\plugins
    SET VRAY_OSL_PATH_3DSMAX20153DSMAX2018_x64=%~dp0Program Files\Chaos Group\V-Ray\3dsmax 20152018 for x64\opensl
    
    vrayspawner2015.exe -AppName="C:\Program Files\Autodesk\3ds Max 20152018\3dsmax.exe" -cmdparams="-p %~dp0\plugin.ini"
  7. Use the specified .bat files to run 3ds Max or V-Ray spawner with the specific V-Ray version.

...