Turning on mental ray diagnostics from the command line

In Softimage, you can enable the diagnostics in the Render Manager, by going to the Diagnostics tab and selecting the Information and Progress check boxes. If you’re working on the command-line with xsibatch, you may not want to start up Softimage just to select those check boxes. So, here’s how to do from the command line: just add -script and -verbose “on” to the xsibatch command line.

xsibatch -render "\\server\project\Scenes\Example.scn" -frames 1 -script verbosity.js -verbose "on"

where verbosity.js is a script that looks like this:

// Information and Progress
Dictionary.GetObject("Passes.mentalray").Parameters("VerbosityLevel").Value = 60;

If you set the VerbosityLevel to 252, you will get the Basic and Detailed Debug log messages too.