How can v print the start time and end time (or the total render time) of a bath render?
And
Where is the code which prints: "// Result: Rendering with Maya Software... // " and "// Result: Rendering Completed. See mayaRenderLog.txt for information. // " in Maya?
What i need is to get info on the total render time.
You could use the Pre and Post render MEL options in the Render Settings -> Render Options to get the precise render time but i think thats nothing for batches because the command line renderer doesnt spit out print code for each frame startet from there. Instead, print the render times to a file. Therefore type into Pre render MEL: global int $renderTime = 0; $renderTime = timerX; into Post render Mel: getRenderTime(); Into your Expression Editor start a new Expression and copy into it:
global proc getRenderTime() { global int $renderTime; string $mode = filetest -f "c:/renderTimes.txt" ? "a" : "w"; $fileId = fopen "c:/renderTimes.txt" $mode; fprint $fileId("render time: " + timerX -st $renderTime + "\n"); fclose $fileId; };