- This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by Leonardo Bernardini.
-
Posted in: Templates
-
26th June 2014 at 4:07 am #14531
SETUP
Windows 7 renderfarm. Vray installed on a server location – trying to create a different template for each new build of vray.PROBLEM
Vray has a fair few custom environment variables. I can get it working if I specific these locally on each machine, however that hardcodes a machine to a version. Im trying to use the templates DECLARE CUSTOM_ENVIRONMENT but they just simply have no effect.I have taken out every variable with vray paths from the system environment variables and put them in the template – but as soon as I do this – it stops rendering on muster. It cant find VRay. What am I missing?
TEMPLATE SECTION MODIFIED
DECLARE ENGINE_WIN
{
SET PLATFORM_ENABLED 1
SET ENABLE_ERROR_CHECK 1
SET ENABLED_BY_DEFAULT 1
SET FRAMESFLOATS 3
SET COMMAND_LINE “-r vray %ISACTIVE(output_folder (-rd “%ATTR(output_folder)”)) -threads %ATTR(PROCUSAGE) -proj “%ATTR(job_project)” -s %ATTR(start_frame) -e %ATTR(end_frame) -b %ATTR(by_frame) %ATTR(ADD_FLAGS) “%ATTR(job_file)””
SET EXECUTABLE “%ATTR(MAYAEXECUTABLE)”
SET STARTING_FOLDER “%ATTR(MAYASTARTINGFOLDER)”
SET ENVIRONMENT_BLOCK DERIVED
SET DETECTION_LOGIC CHILDPROC
SET DETECTION_LOGIC_PROC “Mayabatch.exe”DECLARE CONFIGURABLE_TAGS
{
ADD MAYAEXECUTABLE FILE_SELECTOR “c:\program files\Autodesk\Maya2009\bin\render.exe” “Maya render executable” “Specify the maya render executable” NOTACTIVABLE MANDATORY *.exe
ADD MAYASTARTINGFOLDER FOLDER_SELECTOR “c:\program files\Autodesk\Maya2009\bin” “Starting folder” “Specify the starting folder for the render process” NOTACTIVABLE MANDATORY
ADD PROCUSAGE STRING_COMBO “0” “Processors usage:” “Specify the number of processors to use for each render instance” NOTACTIVABLE
ADD PROCUSAGE COMBOITEM “All” “0”
ADD PROCUSAGE COMBOITEM “1” “1”
ADD PROCUSAGE COMBOITEM “2” “2”
ADD PROCUSAGE COMBOITEM “3” “3”
ADD PROCUSAGE COMBOITEM “4” “4”
}DECLARE CUSTOM_ENVIRONMENT
{
SET MAYA_RENDER_DESC_PATH \file04Resources3DRESOURCESrepositorymaya2014vray2.40.01maya_rootbinrendererDesc
SET VRAY_FOR_MAYA2014_MAIN_x64=\file04Resources3DRESOURCESrepositorymaya2014vray2.40.01maya_vray
SET VRAY_FOR_MAYA2014_PLUGINS_x64=\file04Resources3DRESOURCESrepositorymaya2014vray2.40.01maya_vrayvrayplugins
SET VRAY_PLUGINS_x64=\file04Resources3DRESOURCESrepositorymaya2014vray2.40.01maya_vrayvrayplugins
SET VRAY_AUTH_CLIENT_FILE_PATH=\file04Resources3DRESOURCESrepositorymaya2014vray
SET MAYA_PLUG_IN_PATH=\file04Resources3DRESOURCESrepositorymaya2014vray2.40.01maya_vrayplug-ins
SET MAYA_SCRIPT_PATH=\file04Resources3DRESOURCESrepositorymaya2014vray2.40.01maya_vrayscripts
SET XBMLANGPATH=\file04Resources3DRESOURCESrepositorymaya2014vray2.40.01maya_vrayicons
SET PATH “C:Program Files (x86)NVIDIA CorporationPhysXCommon;%SystemRoot%;%SystemRoot%system32;%SystemRoot%System32Wbem;C:appsautodesk2014Maya2014bin;\file04Resources3DRESOURCESrepositorymaya2014vray2.40.01maya_rootbin;\file04Resources3DRESOURCESrepositorymaya2014vray2.40.01maya_vraybin;\file04Resources3DRESOURCESrepositorymaya2014vray2.40.01vraybin”
}SET APPFINDER “Maya” EXECUTABLE MayaBatch.exe
MAP MAYAEXECUTABLE “%ATTR(APPPATH)\Render.exe”
MAP MAYASTARTINGFOLDER “%ATTR(APPPATH)”
}22nd August 2014 at 1:45 pm #15262two problems:
first, the SET keyword does not expect the = , so you need to type SET MYVAR MYVALUE
second, when you use , you need to escape them, in your case, \file04 should be \\file04Cheers !
-
You must be logged in to reply to this topic.