[Closed] Command line and options -preRenderScript can't change the Mental Ray render setting
Hi all! I have a question about the rendering from the command line via 3dsmaxcmd.exe. I can’t change the Mental Ray render settings. Here’s an example of my file:
-TIF_TYPE:3 -TIF_ALPHA:0 -TIF_COMPRESSION:0 -outputname:“D: est_render\left\beauty\Ep_01_Sc_01_beauty_left.tif” -continueOnError -v:4 -preRenderScript:“D:\WORK\Script\MRP est_render\BATCH\prerender_setting.ms” “D: est_render\Ep_01_Sc_01_beauty_left.max”
prerender_setting.ms:
renderWidth = 532
renderHeight = 218
renderers.current.MinimumSamples = -1 – 1/4
renderers.current.MaximumSamples = 1 – 4
renderers.current.filter = 0 – Box
renderers.current.RedSpatialContrast = 0.05
renderers.current.GreenSpatialContrast = 0.05
renderers.current.BlueSpatialContrast = 0.05
renderers.current.AlphaSpatialContrast = 0.05
When I run the file from the command line it starts to render, but the setting does not change the resolution too. In what could be the problem?
Its’ the way the render command gets passed to max from backburner, it gets sent the RenderWidth and RenderHeight values on submission so won’t pick up any changes in the file, this is because of the way region and strip scanline work.
I decided my problem. It turns out the mental ray does not show the updated value in the windows rendering. About flags thanks DaveWortley took note.