Author Topic: 3dsmax BatchRender stdout  (Read 2362 times)

mim

  • Full Member
  • ***
  • Posts: 14
3dsmax BatchRender stdout
« on: March 18, 2014, 02:22:01 PM »
Hi there,

just a quick question:

where does qube get the stdout logs from max/vray in batchrender mode? does it copy a certain maxlog file or does it pull it directly from the spawned 3dsmaxcmd process?

i'm trying to figure out to maybe write some additional info into the max log via post render script (like calling DOSCommand echo in maxscript but it doesn't reach qube stdout).


cheers!
mikko

shinya

  • Administrator
  • *****
  • Posts: 224
Re: 3dsmax BatchRender stdout
« Reply #1 on: March 18, 2014, 08:24:56 PM »
Hi Mikko,

The batch submission of 3dsmax jobs (which end up as "cmdrange" jobtype running the 3dsmaxcmd.exe command-line renderer), capture everything printed to stdout and stderr, into the .out and .err files found in the job log directory (C:\ProgramData\pfx\qube\logs\job\...)

That said, I just tried running a test using the -postRenderScript option to the 3dsmaxcmd.exe command, using both "format" and "DosCommand 'echo ...'", but neither printed to the stdout/stderr.  This test was done outside of Qube, in a command prompt.  It seems like the stdout/err of a postRenderScript just gets discarded. 

I guess you could open a file for writing, and dump information into that file in the postRenderScript, but I haven't tried that.

-shinya.