So here is the list for all needed environment variables to connect VRay 4 & 5 zip packages into your Maya, if for what-ever reason you decide to not use the supplied batch file or Maya’s module system.
rem Windows batch syntax:
set ROOT "your/unzipped/vray/folder"
setx VRAY_FOR_MAYA2020_MAIN %ROOT%/maya_vray
setx VRAY_FOR_MAYA2020_PLUGINS = %ROOT%/maya_vray/vrayplugins
setx VRAY_PLUGINS_x64 %ROOT%/maya_vray/vrayplugins
setx MAYA_CUSTOM_TEMPLATE_PATH %MAYA_CUSTOM_TEMPLATE_PATH%;%ROOT%/maya_vray/scripts
setx MAYA_PLUG_IN_PATH %MAYA_PLUG_IN_PATH%;%ROOT%/maya_vray/plug-ins
setx MAYA_SCRIPT_PATH %MAYA_SCRIPT_PATH%;%ROOT%/maya_vray/scripts
setx PYTHONPATH %PYTHONPATH%;%ROOT%/maya_vray/scripts
setx XBMLANGPATH %XBMLANGPATH%;%ROOT%/maya_vray/icons
rem !!! Only for VRay 4 (next) !!!
setx PATH %PATH%;%ROOT%/vray/bin;%ROOT%/maya_vray/bin;%ROOT%/maya_root/bin
rem !!! Only for VRay 5 !!!
setx PATH %PATH%;%ROOT%/maya_vray/bin;%ROOT%/maya_vray/bin/hostbin
I had the PATH variable “untouched” as in VRay 4, so it was not capable of finding the correct DLLs.
Hey, I can confirm your findings. I just wanted to also share a note:
The V-Ray Next setup work up to and including V-Ray 5.0. The changes are introduced in V-Ray 5.1.
All the needed information can be found here: V-Ray for Maya
It’s important to note that PATH needs to point to both ROOT/maya_vray/bin/hostbin and ROOT/maya_vray/bin - and in that particular order (first is bin/hostbin, second is bin/).
I don’t know if this is really related - sorry if not: We have updated our render clients to Maya 2022.2 and V-Ray 5.1.0.22. No we can’t batch render anymore.
The batch render process exit with:
Error: file: C:/Program Files/Autodesk/Maya2022/scripts/others/mayaBatchRenderProcedure.mel line 672: Error - No renderable layers found, cancelling render.
Error: file: C:\Users\XXX\AppData\Local\Temp\AST7B1713860.tmp line 38: Scene D:\maya\projects\XXX\scenes\7512XXXX.mb failed to render.
There are no render layer in the scene and the same scene renders fine in Maya, but it does not batch render the scene on the same machine.
All installations are made via the “normal” installer not the zip version.
Guess that the mayaBatchRenderProcedure has no “link” to the new V-Ray version?