Then execute as 3dsmaxcmd.exe -preRenderScript:prevray.ms myscene.max
But it doesn’t seem to be affecting anything. Is the the prerender script executed before 3dsmax loads Vray, and therefore “renderers.current” is not set correctly?
Generally, when the pre-render script is called, rendering has already started and most of the renderer parameters are already cached by V-Ray. Setting the log file name in particular should work fine though… I have to check what happens with it.
Hi Vlado - Thanks for the reply. Changing the log file isn’t really want to accomplish in the long run. I’m really wanting to automate the generation of the irradiance map. So, I’ll be setting `vr.options_dontRenderImage`, and `vr.*_irradmap_*` options.
Changing `vr.system_vrayLog_file` was a simple proof-of-concept, that I thought would be easy to see if scripting Vray from 3dsmaxcmd was possible.