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 6 Next »

Table of Contents

This page provides information on the V-Ray Portable installation.

 Please do not use multiple V-Ray installation methods at the same time. If you plan on creating a Portable V-Ray installation for Maya, make sure you have uninstalled any other V-Ray version for Maya.

 

Overview


The V-Ray installation file (.exe) can be unpacked and used as a portable version. Creating a Portable installation provides several advantages over the regular installer:

  • The Portable installation allows for setting a custom environment when starting each Maya instance. To compare, running the regular installation multiple times overwrites the V-Ray environment variables.

  • The Portable installation can be used to run V-Ray for Maya and V-Ray Standalone from any location or even a network drive. That way, multiple users can start Maya along with V-Ray using just a script that sets up the environment variables without the need to run local installations.

  • Upgrading a Portable installation is a lot easier too, as you don't need to run the installer on every user's computer.

  • The Portable installation allows for quick switching between different V-Ray versions without reinstalling it.

When installing V-Ray for Maya from a Portable installation file, note that Chaos Cosmos is not included by default in the installation. To add it, you can separately download and install it.

When using V-Ray from a Portable installation, the EULA needs to be accepted to start a render. A pop-up window appears when rendering begins. Only Batch rendering is an exception to this.

Please note that the Portable installation is derived from unpacking the V-ray installation file (.exe). It is not the same as a zip installation. 

 

Required steps to run V-Ray


To create a Portable installation, you need to:


1. Download a V-Ray installation file. Click the button to do so.

 

Download V-Ray for Maya


2. Unpack the installation file.

3. Set up the environment variables needed to run V-Ray for Maya/ V-Ray Standalone.

4. Set up your license. Visit the Licensing section to find out how.

5. Run Maya or V-Ray Standalone.


Unpacking the installation file


Unpacking the installation creates three folders in your specified location, which you can later use to install V-Ray on any computer and in any location you like. Here is a detailed step-by-step guide:

 

 

 

  • Download the .exe installer.

  • Open the Command Prompt. Type out: the location of installer that you just downloaded -unpackInstall= location where you wish to unpack. Alternatively, you can drag and drop the installer and folder into Command Prompt to insert their directories. Press Enter to run the command. It should look something like this:
D:/Downloads/vray_adv_60010_maya2022_x64.exe -unpackInstall=D:/unpacked_installation
  • Set the necessary environment variables into a new Command Prompt and press Enter.

 

 

  • Download the installer.

  • Open the Terminal. Type out: the location of the installer you just downloaded -unpackInstall= location where you wish to unpack. Alternatively, you can drag and drop the installer and folder into Terminal to insert their directories. Press Enter to run the command. It should look something like this:
D:/Downloads/vray_adv_60010_maya2022_centos7 -unpackInstall=D:/unpacked_installation
  • Set the necessary environment variables into a new Terminal and press Enter.

 

 

  • Download the installer, extract the .app file.

  • Right-click on the installation.app file and click on Show Contents > MacOS. Here you will find the run_installer file, which is used for this type of installation.
  • Open the Terminal and type out: the location of the run_installer file -unpackInstall= location where you wish to unpack. Alternatively, you can drag and drop the installer and folder into Terminal to insert their directories. Press Enter to run the command. It should look something like this:
% /Users/User/Downloads/vray_adv_60010_maya2022_mavericks_x64.app/Contents/MacOS/run_installer -unpackInstall=unpacked_installation
  • Set the necessary environment variables into a new Terminal and press Enter.

 

Environment Setup


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 2020 or 2023, etc. For example VRAY_FOR_MAYA2020_MAIN or VRAY_FOR_MAYA2020_PLUGINS, etc.

V-Ray 5 and later come with material presets. To load the presets, the MAYA_PRESET_PATH environment variable needs to be set. 

 

 

The example directory and version names below are for V-Ray 6 for Maya 2020 on Windows where vray_adv_60010_maya2020_x64_install.exe has been unpacked into D:\vray_builds\vray_60010_maya2020\.

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

OS

Action

Variable

Location

Description

Example

Windows

Set

MAYA_RENDER_DESC_PATH 

<unpacked_location>\maya_vray\rendererDesc

Needed to run batch rendering with Maya.

set MAYA_RENDER_DESC_PATH=D:\vray_builds\vray_60010_maya2020\maya_vray\rendererDesc

Windows

Set

VRAY_FOR_MAYA nnnn _MAIN 1

<unpacked_location>\maya_vray

Loads the V-Ray for Maya plugins.

set VRAY_FOR_MAYA2020_MAIN=D:\vray_builds\vray_60010_maya2020\maya_vray

Windows

Set

VRAY_FOR_MAYA nnnn _PLUGINS  1.1

<unpacked_location>\maya_vray\vrayplugins

Loads the V-Ray plugins.

set VRAY_FOR_MAYA2020_PLUGINS=D:\vray_builds\vray_60010_maya2020\maya_vray\vrayplugins

Windows

Set

VRAY_PLUGINS  2

<unpacked_location>\maya_vray\vrayplugins

Needed for V-Ray Standalone.

set VRAY_PLUGINS=D:\vray_builds\vray_60010_maya2020\maya_vray\vrayplugins

Windows

Set

VRAY_OSL_PATH_MAYA nnnn  1.2

<unpacked_location>\vray\opensl

Loads OSL plugins for V-Ray.

set VRAY_OSL_PATH_MAYA2020=D:\vray_builds\vray_60010_maya2020\vray\opensl

Windows

Extend

PATH

<unpacked_location>\maya_vray\bin\hostbin;<unpacked_location>\maya_vray\bin

Required to run V-Ray itself.

set PATH=D:\vray_builds\vray_60010_maya2020\maya_vray\bin\hostbin;D:\vray_builds\vray_60010_maya2020\maya_vray\bin;%PATH%

Windows

Extend

MAYA_PLUG_IN_PATH

<unpacked_location>\maya_vray\plug-ins

Loads the V-Ray for Maya main plugins.

set MAYA_PLUG_IN_PATH=D:\vray_builds\vray_60010_maya2020\maya_vray\plug-ins;%MAYA_PLUG_IN_PATH%

Windows

Extend

MAYA_SCRIPT_PATH 

<unpacked_location>\maya_vray\scripts

Loads the V-Ray for Maya scripts.

set MAYA_SCRIPT_PATH=D:\vray_builds\vray_60010_maya2020\maya_vray\scripts;%MAYA_SCRIPT_PATH%

Windows

Extend

MAYA_PRESET_PATH

<unpacked_location>\maya_vray\presets

Loads the V-Ray material presets.

set MAYA_PRESET_PATH=D:\vray_builds\vray_60010_maya2020\maya_vray\presets;%MAYA_PRESET_PATH%

Windows

Extend

PYTHONPATH

<unpacked_location>\maya_vray\scripts

Loads the V-Ray python scripts.

set PYTHONPATH=D:\vray_builds\vray_60010_maya2020\maya_vray\scripts;%PYTHONPATH%

Windows

Extend

XBMLANGPATH

<unpacked_location>\maya_vray\icons

Loads the V-Ray icons.

set XBMLANGPATH=D:\vray_builds\vray_60010_maya2020\maya_vray\icons;%XBMLANGPATH%

Windows

Set

VRAY_AUTH_CLIENT_FILE_PATH 3

arbitrary location

Points V-Ray to a V-Ray license.

set VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>

Windows

Extend

MAYA_CUSTOM_TEMPLATE_PATH

<unpacked_location>\maya_vray\scripts

Loads the node editor and lookdev templates.

set MAYA_CUSTOM_TEMPLATE_PATH=D:\vray_builds\vray_60010_maya2020\maya_vray\scripts;%MAYA_CUSTOM_TEMPLATE_PATH%

Windows

Set

MAYA_TOOLCLIPS_PATH

<unpacked_location>\maya_vray\toolclips

Enables toolclips for V-Ray.

set MAYA_TOOLCLIPS_PATH=D:\vray_builds\vray_60010_maya2020\maya_vray\toolclips;%MAYA_TOOLCLIPS_PATH%

Windows

Extend

PXR_PLUGINPATH_NAME

<unpacked_location>\maya_vray\usdplugins

Loads USD plugins for V-Ray.

set PXR_PLUGINPATH_NAME=D:\vray_builds\vray_60010_maya2020\maya_vray\usdplugins:$PXR_PLUGINPATH_NAME

Windows

Set

VRAY_APPSDK_PLUGINS

<unpacked_location>\maya_vray\vrayplugins

Loads V-ray App SDK plugins.

set VRAY_APPSDK_PLUGINS=D:\vray_builds\vray_60010_maya2020\maya_vray\vrayplugins

The example directory and version names below are for V-Ray 6 for Maya 2020 on Linux where vray_adv_60010_maya2020_linux_centos7_install has been unpacked into /opt/vray_builds/vray_60010_maya2020/.

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_location>/maya_vray/rendererDescNeeded to run batch rendering with Maya.export MAYA_RENDER_DESC_PATH=/opt/vray_builds/vray_60010_maya2020/maya_vray/rendererDesc
LinuxSet VRAY_FOR_MAYA nnnn _MAIN 1.3 <unpacked_location>/maya_vray Loads the V-Ray for Maya plugins.export VRAY_FOR_MAYA2020_MAIN=/opt/vray_builds/vray_60010_maya2020/maya_vray
LinuxSet VRAY_FOR_MAYA nnnn _PLUGINS  1.4 <unpacked_location>/maya_vray/vrayplugins

Loads the V-Ray plugins.

export VRAY_FOR_MAYA2020_PLUGINS=/opt/vray_builds/vray_60010_maya2020/maya_vray/vrayplugins
LinuxSet

VRAY_PLUGINS  2.1

<unpacked_location>/maya_vray/vraypluginsNeeded for V-Ray Standalone.export VRAY_PLUGINS=/opt/vray_builds/vray_60010_maya2020/maya_vray/vrayplugins
LinuxSetVRAY_OSL_PATH_MAYA nnnn  1.5 <unpacked_location>/vray/openslLoads OSL plugins for V-Ray.export VRAY_OSL_PATH_MAYA2020=/opt/vray_builds/vray_60010_maya2020/vray/opensl
LinuxExtendMAYA_PLUG_IN_PATH<unpacked_location>/maya_vray/plug-insLoads the V-Ray for Maya main plugins.export MAYA_PLUG_IN_PATH=/opt/vray_builds/vray_60010_maya2020/maya_vray/plug-ins:$MAYA_PLUG_IN_PATH
LinuxExtendMAYA_SCRIPT_PATH <unpacked_location>/maya_vray/scriptsLoads the V-Ray for Maya scripts.export MAYA_SCRIPT_PATH=/opt/vray_builds/vray_60010_maya2020/maya_vray/scripts:$MAYA_SCRIPT_PATH
LinuxExtendMAYA_PRESET_PATH<unpacked_location>/maya_vray/presetsLoads the V-Ray material presets.export MAYA_PRESET_PATH=/opt/vray_builds/vray_60010_maya2020/maya_vray/presets:$MAYA_PRESET_PATH
LinuxExtendPYTHONPATH<unpacked_location>/maya_vray/scriptsLoads the V-Ray python scripts.export PYTHONPATH=/opt/vray_builds/vray_60010_maya2020/maya_vray/scripts:$PYTHONPATH
LinuxExtend

XBMLANGPATH

<unpacked_location>/maya_vray/iconsLoads the V-Ray icons.export XBMLANGPATH=/opt/vray_builds/vray_60010_maya2020/maya_vray/icons/%B:$XBMLANGPATH
LinuxSet VRAY_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>
LinuxExtend

MAYA_CUSTOM_TEMPLATE_PATH

<unpacked_location>/maya_vray/scriptsLoads the node editor and lookdev templates.export MAYA_CUSTOM_TEMPLATE_PATH=/opt/vray_builds/vray_60010_maya2020/maya_vray/scripts:$MAYA_CUSTOM_TEMPLATE_PATH
LinuxSet MAYA_TOOLCLIPS_PATH <unpacked_location>/maya_vray/toolclipsEnables toolclips for V-Ray.

export MAYA_TOOLCLIPS_PATH=/opt/vray_builds/vray_60010_maya2020/maya_vray/toolclips:$MAYA_TOOLCLIPS_PATH

LinuxExtend

PXR_PLUGINPATH_NAME

<unpacked_location>/maya_vray/usdplugins

Loads USD plugins for V-Ray.

export PXR_PLUGINPATH_NAME=/opt/vray_builds/vray_60010_maya2020/maya_vray/usdplugins:$PXR_PLUGINPATH_NAME

LinuxSet

VRAY_APPSDK_PLUGINS

<unpacked_location>/maya_vray/vraypluginsLoads V-Ray App SDK plugins.

export VRAY_APPSDK_PLUGINS=/opt/vray_builds/vray_60010_maya2020/maya_vray/vrayplugins

The example directory and version names below are for V-Ray 6 for Maya 2020 on macOS where vray_adv_60010_maya2020_mavericks_x64_install.app has been unpacked into /vray_builds/vray_60010_maya2020/.

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_location>/maya_vray/rendererDescNeeded to run batch rendering with Maya.export MAYA_RENDER_DESC_PATH=/vray_builds/vray_60010_maya2020/maya_vray/rendererDesc
macOSSet VRAY_FOR_MAYA nnnn _MAIN 1.6

<unpacked_location>/maya_vray

Loads the V-Ray for Maya plugins.export VRAY_FOR_MAYA2020_MAIN=/vray_builds/vray_60010_maya2020/maya_vray
macOSSet

VRAY_FOR_MAYA nnnn _PLUGINS  1.7

<unpacked_location>/maya_vray/vrayplugins

Loads the V-Ray plugins.

export VRAY_FOR_MAYA2020_PLUGINS=/vray_builds/vray_60010_maya2020/maya_vray/vrayplugins
macOSSet VRAY_PLUGINS  2.2 <unpacked_location>/maya_vray/vrayplugins

Needed for V-Ray Standalone.

export VRAY_PLUGINS=/vray_builds/vray_60010_maya2020/maya_vray/vrayplugins
macOSSetVRAY_OSL_PATH_MAYA nnnn  1.8 <unpacked_location>/vray/openslLoads OSL plugins for V-Ray.export VRAY_OSL_PATH_MAYA2020=/vray_builds/vray_60010_maya2020/vray/opensl
macOSExtendMAYA_PLUG_IN_PATH<unpacked_location>/maya_vray/plug-insLoads the V-Ray for Maya main plugins.export MAYA_PLUG_IN_PATH=/vray_builds/vray_60010_maya2020/maya_vray/plug-ins:$MAYA_PLUG_IN_PATH
macOSExtendMAYA_SCRIPT_PATH <unpacked_location>/maya_vray/scriptsLoads the V-Ray for Maya scripts.export MAYA_SCRIPT_PATH=/vray_builds/vray_60010_maya2020/maya_vray/scripts:$MAYA_SCRIPT_PATH
macOSExtendMAYA_PRESET_PATH<unpacked_location>/maya_vray/presetsLoads the V-Ray material presets.export MAYA_PRESET_PATH=/vray_builds/vray_60010_maya2020/maya_vray/presets:$MAYA_PRESET_PATH
macOSExtendPYTHONPATH<unpacked_location>/maya_vray/scriptsLoads the V-Ray python scripts.export PYTHONPATH=/vray_builds/vray_60010_maya2020/maya_vray/scripts:$PYTHONPATH
macOSExtend

XBMLANGPATH

<unpacked_location>/maya_vray/iconsLoads the V-Ray icons.export XBMLANGPATH=/vray_builds/vray_60010_maya2020/maya_vray/icons:$XBMLANGPATH
macOSSet VRAY_AUTH_CLIENT_FILE_PATH   3.2 arbitrary locationPoints V-Ray to a V-Ray license.export VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>
macOSExtend

MAYA_CUSTOM_TEMPLATE_PATH

<unpacked_location>/maya_vray/scriptsLoads the node editor and lookdev templates.export MAYA_CUSTOM_TEMPLATE_PATH=/vray_builds/vray_60010_maya2020/maya_vray/scripts:$MAYA_CUSTOM_TEMPLATE_PATH
macOSSetMAYA_TOOLCLIPS_PATH<unpacked_location>/maya_vray/toolclipsEnables toolclips for V-Ray.

export MAYA_TOOLCLIPS_PATH=/vray_builds/vray_60010_maya2020/maya_vray/toolclips:$MAYA_TOOLCLIPS_PATH

macOSExtend

PXR_PLUGINPATH_NAME

<unpacked_location>/maya_vray/usdplugins

Loads USD plugins for V-Ray.

export PXR_PLUGINPATH_NAME=/vray_builds/vray_60010_maya2020/maya_vray/usdplugins:$PXR_PLUGINPATH_NAME

macOSSet

VRAY_APPSDK_PLUGINS

<unpacked_location>/maya_vray/vrayplugins

Loads V-Ray App SDK plugins.

export VRAY_APPSDK_PLUGINS=/vray_builds/vray_60010_maya2020/maya_vray/vrayplugins

 


Notes:

1 (1.1, 1.21.31.41.5, 1.61.71.8) - nnnn  is the Maya version. For example, 2023, 2022, 2020, etc.

2 (2.12.2) - VRAY_PLUGINS is used for running the V-Ray Standalone executable that comes with the V-Ray for Maya installation. This is needed to render .vrscene files directly with V-Ray Standalone. An alternative to setting VRAY_PLUGINS as an environment variable is using the config.xml located in vray_builds/my_version/maya_vray/bin/config.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 build is unpacked, in the examples so far -  /opt/vray_builds/vray60010_maya2020/maya_vray/bin/config.xml.
-- Once edited, here's how the line containing the vrayplugins location should look like: <PluginsPath>/opt/vray_builds/vray60010_maya2020/maya_vray/vrayplugins</PluginsPath>

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

 

3 (3.13.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 should 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>

Setup for V-Ray Standalone


Environment Variables


The portable install can also 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 installation build. Read the Unpacking the installation file section for more details.

 

The example directory and version names below are for V-Ray 6 for Maya 2020 on Windows where vray_adv_60010_maya2020_x64.exe has been unpacked into D:\vray_builds\vray_60010_maya2020\.

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

OSAction

Variable

LocationDescriptionExample
WindowsSetVRAY_PLUGINS 4 <unpacked_location>\maya_vray\vraypluginsNeeded for V-Ray Standalone.set VRAY_PLUGINS=D:\vray_builds\vray_60010_maya2020\maya_vray\vrayplugins
WindowsSetVRAY_OSL_PATH_MAYA nnnn

<unpacked_location>\vray\opensl

Loads OSL plugins for V-Ray.set VRAY_OSL_PATH_MAYA2020=D:\vray_builds\vray_60010_maya2020\vray\opensl
WindowsExtend

PATH

<unpacked_location>\vray\lib

Required to run V-Ray itself.

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

WindowsSet VRAY_AUTH_CLIENT_FILE_PATH 5 arbitrary 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 6 for Maya 2020 on Linux where vray_adv_60010_maya2020_linux_centos7 has been unpacked into /opt/vray_builds/vray_60010_maya2020/.

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

OSActionVariable

Location

DescriptionExample
LinuxSet

VRAY_PLUGINS 4.1

<unpacked_location>/maya_vray/vraypluginsNeeded for V-Ray Standalone.export VRAY_PLUGINS=/opt/vray_builds/maya_vray/vray_60010_maya2020/vrayplugins
LinuxSet

VRAY_OSL_PATH_MAYA nnnn

<unpacked_location>/vray/openslLoads OSL plugins for V-Ray.export VRAY_OSL_PATH_MAYA2020=/opt/vray_builds/vray_60010_maya2020/vray/opensl
LinuxExtend

LD_LIBRARY_PATH

<unpacked_location>/vray/lib

Required to run V-Ray itself.

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

LinuxSet VRAY_AUTH_CLIENT_FILE_PATH 5.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 6 for Maya 2020 on macOS where vray_adv60010_maya2020_mavericks_x64_install.app has been unpacked into /vray_builds/vray_60010_maya2020/.

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

OSActionVariable

Location

DescriptionExample
macOSSetVRAY_PLUGINS 4.2 <unpacked_location>/maya_vray/vraypluginsNeeded for V-Ray Standalone.export VRAY_PLUGINS=/vray_builds/vray_60010_maya2020/maya_vray/vrayplugins
macOSSet

VRAY_OSL_PATH_MAYA nnnn

<unpacked_location>/vray/openslLoads OSL plugins for V-Ray.export VRAY_OSL_PATH_MAYA2020=/vray_builds/vray_60010_maya2020/vray/opensl
macOSExtend

DYLD_LIBRARY_PATH

<unpacked_location> /vray/lib

Required to run V-Ray itself.

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

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


Tags


The [STDROOT] and [PLUGINS] tags in the script are normally replaced with their directories by the V-Ray installer, but when you are using a portable installation, you need to replace them manually. The [STDROOT] tag needs to be replaced with the full path to the vray folder in the portable file. The [PLUGINS] tag need to be replaced with the full path to the maya_vray folder in the portable file. The tags are located in the following files:

Linux and MacOS:

maya_vray/bin/vray

maya_vray/bin/vrayserver

vray/vray_netinstall_client_setup.sh

vray/samples/appsdk/setenv39.sh

vray/bin/vraymayaserver.conf

vray/bin/registerVRayServerDaemon

vray/bin/initVRayServerDaemon

vray/bin/vraymayaserver.service

maya_vray/bin/plgparams

Windows:

maya_vray/bin/plgparams

 

 

 


Notes:

4 (4.1 , 4.2) - VRAY_PLUGINS is used for running the V-Ray Standalone executable that comes with the V-Ray for Maya installation. This is needed to render .vrscene files directly with V-Ray Standalone. An alternative to setting VRAY_PLUGINS as an environment variable is using the config.xml located in vray_builds/my_version/maya_vray/bin/config.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 installation build is unpacked, in the examples so far - /opt/vray_builds/vray_60010_maya2020/maya_vray/bin/config.xml.
-- Once edited, here's how the line containing the vrayplugins location should look like: <PluginsPath>/opt/vray_builds/vray_60010_maya2020/maya_vray/vrayplugins</PluginsPath>

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

 

5 (5.1, 5.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, t he 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>

 

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).

Was this helpful?