Square Enix © Goodbye Kansas

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Table of Contents

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, Linux, and macOS operating systems.

 

Table of Contents


Overview


Installing V-Ray for Maya from a .zip file provides several advantages over the regular installer:

  • The ZIP installation allows for setting a custom environment when starting each Maya instance. In difference, running the regular installation multiple times overwrites the V-Ray environment variables.
  • The ZIP installation can be used to run V-Ray for Maya and V-Ray Standalone from an arbitrary location or even a network drive. That way, multiple users can start Maya along with V-Ray for Maya using just a script that sets up the environment variables without the need to run local installations.
  • Upgrading a ZIP installation is a lot easier too, as you don't need to run the installer on every user's computer.
  • The ZIP installation allows for quickly switching between different V-Ray versions without reinstalling it.

 

Required steps to run V-Ray


To run a ZIP installation, you will need to:

  1. Unpack the ZIP file to a location of your choice
  2. Set up the environment variables needed to run V-Ray for Maya and/or V-Ray Standalone
  3. Set up your license
  4. Run Maya or V-Ray Standalone

An easy way to complete the environment set up and run Maya or V-Ray Standalone is with a custom shell or bat script that sets the environment for running the application instance.

These steps are further discussed in the sections below with examples.

It is highly recommended to only use V-Ray from a ZIP install or from a regular installation, but never both at the same time. If you plan on using the ZIP install, make sure to uninstall V-Ray beforehand.

Unpacking the .zip file


Extract the contents of the relevant .zip file into a suitable folder. After unpacking, there should be three sub-folders: maya_root, maya_vray, and vray.

Below is a step-by-step guide:

 

 

 

  1. Download V-Ray Next for Maya 2018 (Zip) from the Chaos Group website. The file should be called vray_adv_40401_maya2018_x64.zip.
  2. Make a new directory anywhere on your machine or on a network location and call it vray_builds. For example, create a vray_builds directory on your D:\ drive.
  3. Make another directory inside vray_builds and name it vray40401_maya2018.
  4. Unpack vray_adv_40401_maya2018_x64.zip into the vray40401_maya2018 directory. Three new sub-folders should appear: maya_rootmaya_vray, and vray

The D:\ drive holding the vray_builds folder is simply an example. The unpacked V-Ray ZIP installation can be placed anywhere.

 

At this point, your folder structure should look like this:


D:\vray_builds\
├── vray40401_maya2018\
│ ├── maya_root\
│ ├── maya_vray\
│ └── vray\

 

Here is an example with V-Ray Next for Maya 2018 and V-Ray 3.6 Maya 2018 - each can be deployed with its own shell script and environment.

D:\vray_builds\
├── vray40401_maya2018\
│ ├── maya_root\
│ ├── maya_vray\
│ └── vray\
├── vray36004_maya2018\
│ ├── maya_root\
│ ├── maya_vray\
│ └── vray\

 

 

  1. Download V-Ray Next for Maya 2018 (Zip) from the Chaos Group website. The file should be called vray_adv_40401_maya2018_linux_x64.zip.
  2. Make a new directory anywhere on your machine or on a network location and call it vray_builds. For example, create a vray_builds directory on your /opt/ directory.
  3. Make another directory inside vray_builds and name it vray40401_maya2018.
  4. Unpack vray_adv_40401_maya2018_linux_x64.zip into the vray40401_maya2018 directory. Three new sub-folders should appear: maya_rootmaya_vray, and vray

The /opt directory on Linux is simply an example. The unpacked V-Ray ZIP installation can be placed anywhere.

 

At this point, your folder structure should look like this:


/opt/vray_builds/
├── vray40401_maya2018/
│ ├── maya_root/
│ ├── maya_vray/
│ └── vray/

 

Here is an example with V-Ray Next for Maya 2018 and V-Ray 3.6 Maya 2018 - each can be deployed with its own shell script and environment.

/opt/vray_builds/
├── vray40401_maya2018/
│ ├── maya_root/
│ ├── maya_vray/
│ └── vray/
├── vray36004_maya2018/
│ ├── maya_root/
│ ├── maya_vray/
│ └── vray/

 

 

  1. Download V-Ray Next for Maya 2018 (Zip) from the Chaos Group website. The file should be called vray_adv_40401_maya2018_mavericks_x64.zip.
  2. Make a new directory anywhere on your machine or on a network location and call it vray_builds. For example, navigate to your root directory using cd / and create a vray_builds directory.
  3. Make another directory inside vray_builds and name it vray40401_maya2018.
  4. Unpack vray_adv_40401_maya2018_mavericks_x64.zip into the vray40401_maya2018 directory. Three new sub-folders should appear: maya_rootmaya_vray, and vray

The / root directory is simply an example. The unpacked V-Ray ZIP installation can be placed anywhere.

 

At this point, your folder structure should look like this:


/vray_builds/
├── vray40401_maya2018/
│ ├── maya_root/
│ ├── maya_vray/
│ └── vray/

 

Here is an example with V-Ray Next for Maya 2018 and V-Ray 3.6 Maya 2018 - each can be deployed with its own shell script and environment.

/vray_builds/
├── vray40401_maya2018/
│ ├── maya_root/
│ ├── maya_vray/
│ └── vray/
├── vray36004_maya2018/
│ ├── maya_root/
│ ├── maya_vray/
│ └── vray/

 

After unpacking the zip file, set up the environment to run V-Ray for Maya and V-Ray Standalone or set up an environment to only run V-Ray Standalone.

 

Environment setup


Before you run Maya оr V-Ray Standalone, you need to set up an environment. There are some specific steps to consider for Maya, XGen with Maya and V-Ray Standalone. The license setup is the last requirement, as V-Ray needs to be instructed where to look for a valid license.

Please read the sections below for more information and examples.

With V-Ray Next, the _x64 suffix for environment variables is no longer used. However, using the _x64 suffix will still work as a fall-back, but it will print a warning.

Setup for Maya


The following environment variables need to be set when running Maya with V-Ray.

In the examples below, nnnn is the Maya version, for example 2018 or 2017, etc. For example VRAY_FOR_MAYA2018_MAIN or VRAY_FOR_MAYA2018_PLUGINS, etc.

For Maya 2016.5 the dot is replaced with an underscore - the variable name is VRAY_FOR_MAYA2016_5_MAIN or VRAY_FOR_MAYA_2016_5_PLUGINS, etc.

The example directory and version names below are for V-Ray Next for Maya 2018 on Windows where vray_adv_40401_maya2018_x64.zip has been unpacked into D:\vray_builds\vray40401_maya2018\.

Here is a list of the environment variables and their description and examples. An example of a complete setup will be given further below.

OSActionVariableLocationDescriptionExample
WindowsSet

MAYA_RENDER_DESC_PATH

<unpacked_zip_location>\maya_root\bin\rendererDescNeeded to run batch rendering with Maya.set MAYA_RENDER_DESC_PATH=D:\vray_builds\vray40401_maya2018\maya_root\bin\rendererDesc
WindowsSet

VRAY_FOR_MAYAnnnn_MAIN 1

<unpacked_zip_location>\maya_vrayLoads the V-Ray for Maya plugins.set VRAY_FOR_MAYA2018_MAIN=D:\vray_builds\vray40401_maya2018\maya_vray
WindowsSet

VRAY_FOR_MAYAnnnn_PLUGINS 1.1

<unpacked_zip_location>\maya_vray\vrayplugins

Loads the V-Ray plugins.

set VRAY_FOR_MAYA2018_PLUGINS=D:\vray_builds\vray40401_maya2018\maya_vray\vrayplugins
WindowsSet

VRAY_PLUGINS 2

<unpacked_zip_location>\maya_vray\vraypluginsNeeded for V-Ray Standalone.set VRAY_PLUGINS=D:\vray_builds\vray40401_maya2018\maya_vray\vrayplugins
WindowsSetVRAY_OSL_PATH_MAYAnnnn 1.2.<unpacked_zip_location>\vray\openslLoads OSL plugins for V-Ray.set VRAY_OSL_PATH_MAYA2018=D:\vray_builds\vray40401_maya2018\vray\opensl
WindowsExtend

PATH

<unpacked_zip_location>\maya_root\binRequired to run V-Ray itself.set PATH=D:\vray_builds\vray40401_maya2018\maya_root\bin;%PATH%
WindowsExtendMAYA_PLUG_IN_PATH<unpacked_zip_location>\maya_vray\plug-insLoads the V-Ray for Maya main plugins.set MAYA_PLUG_IN_PATH=D:\vray_builds\vray40401_maya2018\maya_vray\plug-ins;%MAYA_PLUG_IN_PATH%
WindowsExtendMAYA_SCRIPT_PATH <unpacked_zip_location>\maya_vray\scriptsLoads the V-Ray for Maya scripts.set MAYA_SCRIPT_PATH=D:\vray_builds\vray40401_maya2018\maya_vray\scripts;%MAYA_SCRIPT_PATH%
WindowsExtendPYTHONPATH<unpacked_zip_location>\maya_vray\scriptsLoads the V-Ray python scripts.set PYTHONPATH=D:\vray_builds\vray40401_maya2018\maya_vray\scripts;%PYTHONPATH%
WindowsExtend

XBMLANGPATH

<unpacked_zip_location>\maya_vray\iconsLoads the V-Ray icons.set XBMLANGPATH=D:\vray_builds\vray40401_maya2018\maya_vray\icons;%XBMLANGPATH%
WindowsSetVRAY_AUTH_CLIENT_FILE_PATH 3arbitrary locationPoints V-Ray to a V-Ray license.set VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>

The example directory and version names below are for V-Ray Next for Maya 2018 on Linux where vray_adv_40401_maya2018_linux_x64.zip has been unpacked into /opt/vray_builds/vray40401_maya2018/.

Here is a list of the environment variables and their description and examples. An example of a complete setup will be given further below.

OSActionVariableLocationDescriptionExample
LinuxSet

MAYA_RENDER_DESC_PATH

<unpacked_zip_location>/maya_root/bin/rendererDescNeeded to run batch rendering with Maya.export MAYA_RENDER_DESC_PATH=/opt/vray_builds/vray40401_maya2018/maya_root/bin/rendererDesc
LinuxSet

VRAY_FOR_MAYAnnnn_MAIN 1.3

<unpacked_zip_location>/maya_vrayLoads the V-Ray for Maya plugins.export VRAY_FOR_MAYA2018_MAIN=/opt/vray_builds/vray40401_maya2018/maya_vray
LinuxSet

VRAY_FOR_MAYAnnnn_PLUGINS 1.4

<unpacked_zip_location>/maya_vray/vrayplugins

Loads the V-Ray plugins.

export VRAY_FOR_MAYA2018_PLUGINS=/opt/vray_builds/vray40401_maya2018/maya_vray/vrayplugins
LinuxSet

VRAY_PLUGINS 2.1

<unpacked_zip_location>/maya_vray/vraypluginsNeeded for V-Ray Standalone.export VRAY_PLUGINS=/opt/vray_builds/vray40401_maya2018/maya_vray/vrayplugins
LinuxSetVRAY_OSL_PATH_MAYAnnnn 1.5<unpacked_zip_location>/vray/openslLoads OSL plugins for V-Ray.export VRAY_OSL_PATH_MAYA2018=/opt/vray_builds/vray40401_maya2018/vray/opensl
LinuxExtend

LD_LIBRARY_PATH

<unpacked_zip_location>/maya_root/libRequired to run V-Ray itself.export LD_LIBRARY_PATH=/opt/vray_builds/vray40401_maya2018/maya_root/lib:$LD_LIBRARY_PATH
LinuxExtendMAYA_PLUG_IN_PATH<unpacked_zip_location>/maya_vray/plug-insLoads the V-Ray for Maya main plugins.export MAYA_PLUG_IN_PATH=/opt/vray_builds/vray40401_maya2018/maya_vray/plug-ins:$MAYA_PLUG_IN_PATH
LinuxExtendMAYA_SCRIPT_PATH <unpacked_zip_location>/maya_vray/scriptsLoads the V-Ray for Maya scripts.export MAYA_SCRIPT_PATH=/opt/vray_builds/vray40401_maya2018/maya_vray/scripts:$MAYA_SCRIPT_PATH
LinuxExtendPYTHONPATH<unpacked_zip_location>/maya_vray/scriptsLoads the V-Ray python scripts.export PYTHONPATH=/opt/vray_builds/vray40401_maya2018/maya_vray/scripts:$PYTHONPATH
LinuxExtend

XBMLANGPATH

<unpacked_zip_location>/maya_vray/icons/%BLoads the V-Ray icons.export XBMLANGPATH=/opt/vray_builds/vray40401_maya2018/maya_vray/icons/%B:$XBMLANGPATH
LinuxSetVRAY_AUTH_CLIENT_FILE_PATH 3.1.arbitrary locationPoints V-Ray to a V-Ray license.export VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>

The example directory and version names below are for V-Ray Next for Maya 2018 on macOS where vray_adv_40401_maya2018_mavericks_x64.zip has been unpacked into /vray_builds/vray40401_maya2018/.

Here is a list of the environment variables and their description and examples. An example of a complete setup will be given further below.

OSActionVariableLocationDescriptionExample
macOSSet

MAYA_RENDER_DESC_PATH

<unpacked_zip_location>/maya_root/Maya.app/Contents/bin/rendererDesc/Needed to run batch rendering with Maya.export MAYA_RENDER_DESC_PATH=/vray_builds/vray40401_maya2018/maya_root/bin/rendererDesc
macOSSet

VRAY_FOR_MAYAnnnn_MAIN 1.6

<unpacked_zip_location>/maya_vrayLoads the V-Ray for Maya plugins.export VRAY_FOR_MAYA2018_MAIN=/vray_builds/vray40401_maya2018/maya_vray
macOSSet

VRAY_FOR_MAYAnnnn_PLUGINS 1.7

<unpacked_zip_location>/maya_vray/vrayplugins

Loads the V-Ray plugins.

export VRAY_FOR_MAYA2018_PLUGINS=/vray_builds/vray40401_maya2018/maya_vray/vrayplugins
macOSSet

VRAY_PLUGINS 2.2

<unpacked_zip_location>/maya_vray/vraypluginsNeeded for V-Ray Standalone.export VRAY_PLUGINS=/vray_builds/vray40401_maya2018/maya_vray/vrayplugins
macOSSetVRAY_OSL_PATH_MAYAnnnn 1.8<unpacked_zip_location>/vray/openslLoads OSL plugins for V-Ray.export VRAY_OSL_PATH_MAYA2018=/vray_builds/vray40401_maya2018/vray/opensl
macOSExtend

DYLD_LIBRARY_PATH

<unpacked_zip_location>/maya_root/Maya.app/Contents/MacOSRequired to run V-Ray itself.export DYLD_LIBRARY_PATH=/vray_builds/vray40401_maya2018/maya_root/Maya.app/Contents/MacOS:$DYLD_LIBRARY_PATH
macOSExtendMAYA_PLUG_IN_PATH<unpacked_zip_location>/maya_vray/plug-insLoads the V-Ray for Maya main plugins.export MAYA_PLUG_IN_PATH=/vray_builds/vray40401_maya2018/maya_vray/plug-ins:$MAYA_PLUG_IN_PATH
macOSExtendMAYA_SCRIPT_PATH <unpacked_zip_location>/maya_vray/scriptsLoads the V-Ray for Maya scripts.export MAYA_SCRIPT_PATH=/vray_builds/vray40401_maya2018/maya_vray/scripts:$MAYA_SCRIPT_PATH
macOSExtendPYTHONPATH<unpacked_zip_location>/maya_vray/scriptsLoads the V-Ray python scripts.export PYTHONPATH=/vray_builds/vray40401_maya2018/maya_vray/scripts:$PYTHONPATH
macOSExtend

XBMLANGPATH

<unpacked_zip_location>/maya_vray/iconsLoads the V-Ray icons.export XBMLANGPATH=/vray_builds/vray40401_maya2018/maya_vray/icons/%B:$XBMLANGPATH
macOSSetVRAY_AUTH_CLIENT_FILE_PATH 3.2arbitrary locationPoints V-Ray to a V-Ray license.export VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>

nnnn is the Maya version. For example, 2018, 2017, etc. While for Maya 2018 the variable name is VRAY_FOR_MAYA2018_MAIN, or VRAY_FOR_MAYA2018_PLUGINS or VRAY_OSL_PATH_MAYA2018, note that for Maya 2016.5 it will be VRAY_FOR_MAYA2016_5_MAIN, etc for the rest of the variables that include the Maya version in their name.

VRAY_PLUGINS is used for running the V-Ray Standalone executable that comes with the V-Ray for Maya installation. You may need this if you want to render .vrscene files directly with V-Ray Standalone. Another use for this variable when deploying V-Ray for Maya with a ZIP installation, is the unlikely case where you would want to use out-of-process IPR. An alternative to settings VRAY_PLUGINS as an environment variable is to use the vrayconfig.xml located in vray_builds/my_version/maya_vray/bin/vrayconfig.xml. You will need to edit the xml file with a text editor and point the [PLUGINS]/vrayplugins to vray_builds/my_version/maya_vray/vrayplugins.

  1. -- Example: Locate the xml file in the location where the ZIP build is unpacked, in the examples so far -  /opt/vray_builds/vray40401_maya2018/maya_vray/bin/vrayconfig.xml.
    -- Once edited, here's how the line containing the vrayplugins location should look like: <PluginsPath>/opt/vray_builds/vray40401_maya2018/maya_vray/vrayplugins</PluginsPath>

    Example: vrayconfig.xml
     <!--
    	Example contents of vrayconfig.xml as an alternative to settings the VRAY_PLUGINS environment variable
    	In this example, the ZIP installation is for V-Ray Next for Maya 2018 for Windows and the .zip file is extracted in D:\vray_builds\.
    	In this case, the vrayconfig.xml file is located in D:\vray_builds\vray40401_maya2018\maya_vray\bin\vrayconfig.xml.
    -->
    <VRayStd>
    	<Configuration>
    		<PluginsPath>D:\vray_builds\vray40401_maya2018\maya_vray\vrayplugins</PluginsPath>
    	</Configuration>
    </VRayStd>
     <!--
    	Example contents of vrayconfig.xml as an alternative to settings the VRAY_PLUGINS environment variable
    	In this example, the ZIP installation is for V-Ray Next for Maya 2018 for Linux and the .zip file is extracted in /opt/vray_builds/.
    	In this case, the vrayconfig.xml file is located in /opt/vray_builds/vray40401_maya2018/maya_vray/bin/vrayconfig.xml.
    -->
    <VRayStd>
    	<Configuration>
    		<PluginsPath>/opt/vray_builds/vray40401_maya2018/maya_vray/vrayplugins</PluginsPath>
    	</Configuration>
    </VRayStd>
     <!--
    	Example contents of vrayconfig.xml as an alternative to settings the VRAY_PLUGINS environment variable
    	In this example, the ZIP installation is for V-Ray Next for Maya 2018 for macOS and the .zip file is extracted in the root of the system drive in a new folder called vray_builds.
    	In this case, the vrayconfig.xml file is located in /vray_builds/vray40401_maya2018/maya_vray/bin/vrayconfig.xml.
    -->
    <VRayStd>
    	<Configuration>
    		<PluginsPath>/vray_builds/vray40401_maya2018/maya_vray/vrayplugins</PluginsPath>
    	</Configuration>
    </VRayStd>

     

    VRAY_AUTH_CLIENT_FILE_PATH needs to point to the folder that contains the vrlclient.xml  file that holds the V-Ray license server settings (IP address and port number). Alternatively, using the tool to set or change your license settings will create the vrlclient.xml file for you at a default location and there will be no need to explicitly define its location the VRAY_AUTH_CLIENT_FILE_PATH variable. However, it might be useful to use the variable to define per-user license settings.
    For the case where using the environment variable is the best option for you and you need to create the vrlclient.xml file manually, the example below shows what it s hould contain:

    Example: vrlclient.xml
     <!--
    	Example contents of vrlclient.xml
    	In this example, the primary IP address to look for a valid license is 10.0.0.100 at the default 30304 port.
    	Alternate servers (hosts) have not been set.
    -->
    <VRLClient>
    	<LicServer>
    		<Host>10.0.0.100</Host>
    		<Port>30304</Port>
    		<Host1></Host1>
    		<Port1>30304</Port1>
    		<Host2></Host2>
    		<Port2>30304</Port2>
    		<User></User>
    		<Pass></Pass>
    	</LicServer>
    </VRLClient>

 

You can now run Maya.

 

Here is a sample Maya.env  file for Maya 2018 on Windows, where the .zip installation has been extracted to D:\vray_builds\vray_adv_40401_maya2018. Place the file in C:\Users\<username>\Documents\maya\2018 or combine its contents with the already existing Maya.env that you will find there, in case the original file is not empty.

 

Setup for V-Ray Standalone


The ZIP install can be used to run only V-Ray Standalone without running V-Ray for Maya. In this case, the number of environment variables to set is reduced.

The list or variables to set requires unpacking the same ZIP build. Read the Unpacking the .zip file section for more details.

 

The example directory and version names below are for V-Ray Next for Maya 2018 on Windows where vray_adv_40401_maya2018_x64.zip has been unpacked into D:\vray_builds\vray40401_maya2018\.

Here is a list of the environment variables and their description and examples. An example of a complete setup will be given further below.

OSActionVariableLocationDescriptionExample
WindowsSetVRAY_PLUGINS 1maya_vray\vraypluginsNeeded for V-Ray Standalone.set VRAY_PLUGINS=D:\vray_builds\vray40401_maya2018\maya_vray\vrayplugins
WindowsSetVRAY_OSL_PATHvray\openslLoads OSL plugins for V-Ray.set VRAY_OSL_PATH_MAYA2018=D:\vray_builds\vray40401_maya2018\vray\opensl
WindowsExtend

PATH 3

vray\lib\x64\vc14 (recent builds: vray\lib)Required to run V-Ray itself.

set PATH=D:\vray_builds\vray40401_maya2018\vray\lib\x64\vc14;%PATH%

for builds after 2019-03-12:

set PATH=D:\vray_builds\vray40401_maya2018\vray\lib;%PATH%

WindowsSetVRAY_AUTH_CLIENT_FILE_PATH 2arbitrary locationPoints V-Ray to a V-Ray license.set VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>

The example directory and version names below are for V-Ray Next for Maya 2018 on Linux where vray_adv_40401_maya2018_linux_x64.zip has been unpacked into /opt/vray_builds/vray40401_maya2018/.

Here is a list of the environment variables and their description and examples. An example of a complete setup will be given further below.

OSActionVariableLocationDescriptionExample
LinuxSetVRAY_PLUGINS 1/maya_vray/vraypluginsNeeded for V-Ray Standalone.export VRAY_PLUGINS=/opt/vray_builds/maya_vray/vray40401_maya2018/vrayplugins
LinuxSetVRAY_OSL_PATH/vray/openslLoads OSL plugins for V-Ray.export VRAY_OSL_PATH=/opt/vray_builds/vray40401_maya2018/vray/opensl
LinuxExtend

LD_LIBRARY_PATH 3

/vray/lib/linux_x64/clang-gcc-4.8

(recent builds: vray/lib)

Required to run V-Ray itself.

export LD_LIBRARY_PATH=/opt/vray_builds/vray40401_maya2018/vray/lib/linux_x64/clang-gcc-4.8:$LD_LIBRARY_PATH

for builds after 2019-03-12:

export LD_LIBRARY_PATH=/opt/vray_builds/vray40401_maya2018/vray/lib:$LD_LIBRARY_PATH

LinuxSetVRAY_AUTH_CLIENT_FILE_PATH 2arbitrary locationPoints V-Ray to a V-Ray license.export VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>

The example directory and version names below are for V-Ray Next for Maya 2018 on macOS where vray_adv_40401_maya2018_mavericks_x64.zip has been unpacked into /vray_builds/vray40401_maya2018/.

Here is a list of the environment variables and their description and examples. An example of a complete setup will be given further below.

OSActionVariableLocationDescriptionExample
macOSSetVRAY_PLUGINS 1/maya_vray/vraypluginsNeeded for V-Ray Standalone.export VRAY_PLUGINS=/vray_builds/vray40401_maya2018/maya_vray/vrayplugins
macOSSetVRAY_OSL_PATH/vray/openslLoads OSL plugins for V-Ray.export VRAY_OSL_PATH_MAYA2018=/vray_builds/vray40401_maya2018/vray/opensl
macOSExtend

DYLD_LIBRARY_PATH 3

/vray/lib/mavericks_x64/gcc-4.2-cpp

(recent builds: /vray/lib)

Required to run V-Ray itself.

export DYLD_LIBRARY_PATH=/vray_builds/vray40401_maya2018/vray/lib/mavericks_x64/gcc-4.2-cpp:$DYLD_LIBRARY_PATH

for builds after 2019-03-12:

export DYLD_LIBRARY_PATH=/vray_builds/vray40401_maya2018/vray/lib:$DYLD_LIBRARY_PATH

macOSSetVRAY_AUTH_CLIENT_FILE_PATH 2arbitrary locationPoints V-Ray to a V-Ray license.export VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>



Notes

  1. VRAY_PLUGINS is used for running the V-Ray Standalone executable that comes with the V-Ray for Maya installation. You may need this if you want to render .vrscene files directly with V-Ray Standalone. Another use for this variable when deploying V-Ray for Maya with a ZIP installation, is the unlikely case where you would want to use out-of-process IPR. An alternative to settings VRAY_PLUGINS as an environment variable is to use the vrayconfig.xml located in vray_builds/my_version/maya_vray/bin/vrayconfig.xml. You will need to edit the xml file with a text editor and point the [PLUGINS]/vrayplugins to vray_builds/my_version/maya_vray/vrayplugins.
    -- Example: Locate the xml file in the location where the ZIP build is unpacked, in the examples so far -  /opt/vray_builds/vray40401_maya2018/maya_vray/bin/vrayconfig.xml.
    -- Once edited, here's how the line containing the vrayplugins location should look like: <PluginsPath>/opt/vray_builds/vray40401_maya2018/maya_vray/vrayplugins</PluginsPath>

    Example: vrayconfig.xml
     <!--
    	Example contents of vrayconfig.xml as an alternative to settings the VRAY_PLUGINS environment variable
    	In this example, the ZIP installation is for V-Ray Next for Maya 2018 for Linux and the .zip file is extracted in D:\vray_builds\.
    	In this case, the vrayconfig.xml file is located in D:\vray_builds\vray40401_maya2018\maya_vray\bin\vrayconfig.xml.
    -->
    <VRayStd>
    	<Configuration>
    		<PluginsPath>D:\vray_builds\vray40401_maya2018\maya_vray\vrayplugins</PluginsPath>
    	</Configuration>
    </VRayStd>
     <!--
    	Example contents of vrayconfig.xml as an alternative to settings the VRAY_PLUGINS environment variable
    	In this example, the ZIP installation is for V-Ray Next for Maya 2018 for Linux and the .zip file is extracted in /opt/vray_builds/.
    	In this case, the vrayconfig.xml file is located in /opt/vray_builds/vray40401_maya2018/maya_vray/bin/vrayconfig.xml.
    -->
    <VRayStd>
    	<Configuration>
    		<PluginsPath>/opt/vray_builds/vray40401_maya2018/maya_vray/vrayplugins</PluginsPath>
    	</Configuration>
    </VRayStd>
     <!--
    	Example contents of vrayconfig.xml as an alternative to settings the VRAY_PLUGINS environment variable
    	In this example, the ZIP installation is for V-Ray Next for Maya 2018 for macOS and the .zip file is extracted in the root of the system drive in a new folder called vray_builds.
    	In this case, the vrayconfig.xml file is located in /vray_builds/vray40401_maya2018/maya_vray/bin/vrayconfig.xml.
    -->
    <VRayStd>
    	<Configuration>
    		<PluginsPath>/vray_builds/vray40401_maya2018/maya_vray/vrayplugins</PluginsPath>
    	</Configuration>
    </VRayStd>

     

  2. VRAY_AUTH_CLIENT_FILE_PATH needs to point to the folder that contains the vrlclient.xml  file that holds the V-Ray license server settings (IP address and port number). Alternatively, using the tool to set or change your license settings will create the vrlclient.xml file for you at a default location and there will be no need to explicitly define its location the VRAY_AUTH_CLIENT_FILE_PATH variable. However, it might be useful to use the variable to define per-user license settings.
    For the case where using the environment variable is the best option for you and you need to create the vrlclient.xml file manually, the example below shows what it s hould contain:

    Example: vrlclient.xml
     <!--
    	Example contents of vrlclient.xml
    	In this example, the primary IP address to look for a valid license is 10.0.0.100 at the default 30304 port.
    	Alternate servers (hosts) have not been set.
    -->
    <VRLClient>
    	<LicServer>
    		<Host>10.0.0.100</Host>
    		<Port>30304</Port>
    		<Host1></Host1>
    		<Port1>30304</Port1>
    		<Host2></Host2>
    		<Port2>30304</Port2>
    		<User></User>
    		<Pass></Pass>
    	</LicServer>
    </VRLClient>
  3. Starting with nightly build set 28989 (dated 2019-03-12) and later, V-Ray Next adopts thenew style of directory naming, where bin/ is used instead of bin/x64/vc14 or bin/linux_x64/clang-gcc-4.8 ; all release and stable builds at this time use the classic style. Any new batch files and shell scripts should be designed to accommodate the new style too, as upcoming updates will gradually adopt the new directory layout.

     

If you want to use any additional tools like the irradiance map viewer, the VRIMG to OpenEXR converter etc., then also add to the PATH environment variable vray_builds/my_version/vray/bin.

Please note that by default the V-Ray installer will set the TdrLevel (that is GPU timeout detection and recovery) to 0 (disabled).