Sometimes users need to be able to quickly switch between different V-Ray versions without having to constantly reinstall it. In this case both V-Ray for Maya and V-Ray Standalone can be installed at and run from arbitrary locations on your machine or local network. This page describes how to set up your local system so that it loads the files for the correct version.
The notes here are for the Windows and Linux operating systems only.
Unpacking the Contents of the .zip File
Extract the contents of the relevant .zip file into a suitable folder, for example, vray_builds/my_version. After the extraction, there should be three sub folders in it: maya_root, maya_vray and vray.
Before you run Maya, you need to perform the following steps:
If you plan to use batch rendering, set the environment variable MAYA_RENDER_DESC_PATH to the folder vray_builds/my_version/maya_root/bin/rendererDesc
Set the VRAY_FOR_MAYAnnnn_MAIN_x64 environment variable to point to the vray_builds/my_version/maya_vray folder where nnnn is the Maya version (2012, 2014, etc.).
Set the VRAY_FOR_MAYAnnnn_PLUGINS_x64 environment variable to point to the folder vray_builds/my_version/maya_vray/vrayplugins
Set the VRAY_AUTH_CLIENT_FILE_PATH environment variable to point to the folder that contains the vrlclient.xml file with the V-Ray license server settings (IP address and port number)
On Linux, add to the LD_LIBRARY_PATH environment variable the path to the vray_builds/my_version/maya_root/lib folder; on Windows, add to the PATH environment variable the path to the vray_builds/my_version/maya_root/bin folder.
Add to the MAYA_PLUG_IN_PATH variable the folder vray_builds/my_version/maya_vray/plug-ins
Add to the MAYA_SCRIPT_PATH variable the folder vray_builds/my_version/maya_vray/scripts
Add to the PYTHONPATH variable the folder vray_builds/my_version/maya_vray/scripts to be able to use V-Ray's python modules
Add to the XBMLANGPATH variable the folder vray_builds/my_version/maya_vray/icons/
the syntax is slightly different for Linix, %B must be added at the end, f.e. vray_builds/my_version/maya_vray/icons/%B
Edit vray_builds/my_version/maya_vray/bin/vrayconfig.xml and set <PluginsPath> to be vray_builds/my_version/maya_vray/vrayplugins to be able to use V-Ray RT
You can now run Maya.
If you want to use the VRScene mode for XGen for Maya 2014.5+ there are a few more steps.
They are NOT required for the official V-Ray 3.0 support for XGen in Maya 2015+. There works directly.
create a config.txt file with a path to the vray_builds/my_version/maya_root/plug-ins/xgen/presets/ like this:
Set the XGEN_CONFIG_PATH environment variable to point to the folder that contains the config.txt file
Here is a sample Maya.env file for windows: Maya.env
Running V-Ray Standalone
Before running V-Ray Standalone, you need to perform the following steps:
Add to the PATH environment variable the folder
vray_builds/my_version/maya_vray/bin (this is required for running V-Ray itself)
vray_builds/my_version/vray/bin (if you want to use any additional tools like the irradiance map viewer, the VRIMG to OpenEXR converter etc.).
On Linux, add to the LD_LIBRARY_PATH environment variable the folder
Set the VRAY_PLUGINS_x64 environment variable to the folder
Set the VRAY_AUTH_CLIENT_FILE_PATH environment variable to point to the vrlclient.xml file that contains the V-Ray license server settings (IP address and port number).
You can now run the vray command.