hi Alex,
i’ve created a test scene with a load of cubes in it with a std vrMaterial applied and a dome light. there’s two render layers, one called “test_useThis_RL” and another called “test_dontUse_RL”
I did a test render inside of maya to make sure the scene rendered , which went through no probs,
ive got a .bat file called batchRender_test_RL.bat which i created in notepad (win10)
the string in side the .bat file is below , i used a pipe symbol copied from online “¦” and one using the keyboard “|”,
//--------------- test------------
render -r vray -x 1280 -y 720 -rl true¦test_useThis_RL -s 20 -e 30 -verb “S:/projects_current_trboDrv/Old_shed_Project_trboDrv/scenes/test_rlRender_001.mb”
render -r vray -x 1280 -y 720 -rl true|test_useThis_RL -s 20 -e 30 -verb “S:/projects_current_trboDrv/Old_shed_Project_trboDrv/scenes/test_rlRender_001.mb”
i re-named the maya render log and tried to render using the . bat file but no new render log was created. but ive copied the output from the terminal :-
===============================================
V-Ray Standalone, version 3.30.01 for x64
Copyright (C) 2000-2015 Chaos Group Ltd. All rights reserved.
Use -credits option for additional third-party copyright notices.
Build from Feb 25 2016, 22:00:38
Compiled with Intel C++ compiler, version 14
Operating system is Microsoft™ Windows™, version 6.2,
V-Ray core version is 3.25.01
===============================================
---- took out the instructions bit to cut down on the amount of text-------
C:\Program Files\Autodesk\Maya2014\vray\bin>S:\projects_current_trboDrv\Old_shed_Project_trboDrv\batchRender_test_RL.bat
C:\Program Files\Autodesk\Maya2014\vray\bin>render -r vray -x 1280 -y 720 -rl trueªtest_useThis_RL -s 20 -e 30 -verb “S:/projects_current_trboDrv/Old_shed_Project_trboDrv/scenes/test_rlRender_001.mb”
Locale is: “English_United Kingdom.1252(0x0809) (LCID:0x0809)”
// Using temp file “C:\Users\user\AppData\Local\Temp\ASTCBBB716540.tmp”
////////////////////////////////////////////////////////////////////////////
// Starting Mel program
proc renderIt(string $name) {
string $opt=“”; string $rl=“”; string $rp=“”; float $resize=-1.; vrayRegisterRenderer(); vrayCreateVRaySettingsNode(); select vraySettings;; // Before all flags
setAttr “vraySettings.width” 1280;; // For flag -x
setAttr “vraySettings.height” 720;; // For flag -y
$rl=“trueªtest_useThis_RL”; // For flag -rl
removeRenderLayerAdjustmentAndUnlock defaultRenderGlobals.animation; setAttr defaultRenderGlobals.animation 1; removeRenderLayerAdjustmentAndUnlock defaultRenderGlobals.startFrame; setAttr defaultRenderGlobals.startFrame 20; // For flag -s
removeRenderLayerAdjustmentAndUnlock defaultRenderGlobals.animation; setAttr defaultRenderGlobals.animation 1; removeRenderLayerAdjustmentAndUnlock defaultRenderGlobals.endFrame; setAttr defaultRenderGlobals.endFrame 30; // For flag -e
setMayaSoftwareLayers($rl, $rp); setImageSizePercent($resize); mayaBatchRenderProcedure(0, “”, “”, “vray”, $opt);; // After all flags
}
//
// Main part
//
string $sceneName = “S:/projects_current_trboDrv/Old_shed_Project_trboDrv/scenes/test_rlRender_001.mb”;
int $checkScene = `file -q -ex`;
if ($checkScene!=1) {
quit -abort -force -exitCode 209;
error (“Cannot load scene \”“+$sceneName+”\“. Please check the scene name.”);
} else if (catch(`renderIt($sceneName)`)) {
quit -abort -force -exitCode 210;
error (“Scene “+$sceneName+” failed to render.\n”);
} else {
print (“Scene “+$sceneName+” completed.\n”);
quit -abort -force -exitCode 0; // Exit Maya
}
// Ending Mel program
// Maya file is “S:/projects_current_trboDrv/Old_shed_Project_trboDrv/scenes/test_rlRender_001.mb”
Starting “C:\Program Files\Autodesk\Maya2016\bin\mayabatch.exe”
Arg[1]=“-batch”
Arg[2]=“-file”
Arg[3]=“S:/projects_current_trboDrv/Old_shed_Project_trboDrv/scenes/test_rlRender_001.mb”
Arg[4]=“-script”
Arg[5]=“C:\Users\user\AppData\Local\Temp\ASTCBBB716540.tmp”
Error: file: C:/ProgramData/Autodesk/ApplicationPlugins/MayaBonusTools/Contents/scripts-2016/bonusToolsMenu.mel line 1913: UI commands can’t be run in batch mode.
[2016/May/19|17:08:57] V-Ray: V-Ray for Maya version 3.30.02 from Apr 14 2016, 20:35:46
[2016/May/19|17:08:57] V-Ray: V-Ray core version is 3.25.01
Initializing V-Ray for Maya
[2016/May/19|17:08:57] V-Ray: Loading plugins from “C:\Program Files\Autodesk\Maya2016\vray/vrayplugins/vray_*.dll”
[2016/May/19|17:08:59] V-Ray: 74 plugin(s) loaded successfully
[2016/May/19|17:08:59] V-Ray: Finished loading plugins.
[2016/May/19|17:08:59] V-Ray: Registered dynamic node vrayMultiProjection (id: 1115335/0x001104C7)
[2016/May/19|17:08:59] V-Ray: Registered dynamic node VRayCurvature (id: 1115347/0x001104D3)
[2016/May/19|17:08:59] V-Ray: Registered dynamic node VRayTriplanar (id: 1115362/0x001104E2)
[2016/May/19|17:08:59] V-Ray: Registered dynamic node VRaySkinMtl (id: 1115348/0x001104D4)
[2016/May/19|17:08:59] V-Ray: Registered dynamic node VRayPointParticleMtl (id: 1115353/0x001104D9)
[2016/May/19|17:08:59] V-Ray: Registered dynamic node VRayStochasticFlakesMtl (id: 1115359/0x001104DF)
Error: line 1: line 1: Cannot find procedure “shaderBallRendererMenuUpdate”.
File read in 3.3 seconds.
Result: S:/projects_current_trboDrv/Old_shed_Project_trboDrv/scenes/test_rlRender_001.mb
Scene S:/projects_current_trboDrv/Old_shed_Project_trboDrv/scenes/test_rlRender_001.mb completed.
// Maya exited with status 0
C:\Program Files\Autodesk\Maya2014\vray\bin>render -r vray -x 1280 -y 720 -rl true | test_useThis_RL -s 20 -e 30 -verb “S:/projects_current_trboDrv/Old_shed_Project_trboDrv/scenes/test_rlRender_001.mb”
‘test_useThis_RL’ is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files\Autodesk\Maya2014\vray\bin>
C:\Program Files\Autodesk\Maya2014\vray\bin>