View Full Version : Accessing mental ray render settings
02 February 2005, 01:26 PM
First of all, my scripting knowledge is somewhat limited :) with that in mind ;
Is there a way to access the mental ray render settings via scripting, in the max helpfiles
these syntaxes are listed as "unsupported features". (<mental_ray_renderer>.)
I would like the ability to write for instance
in a script, is this possible ?
02 February 2005, 03:33 PM
Which maxversion are you using?
02 February 2005, 03:43 PM
Sorry, using max 7
02 February 2005, 04:03 PM
Sorry, I misunderstood your question.. maxversion doesn't really matter
Here's an example:
-- check if renderer set to Mental Ray
if classof renderers.current == mental_ray_renderer then
renderers.current.FinalGatherRadius = 50
02 February 2005, 04:10 PM
Thanks a bunch!
It works like a charm.
If i may ask another question :
Im having trouble setting the samplig quality to min 1/64 and max 1/4.
I know the value expected is integer but i dont know the syntax to set it to sub 1.
DOH, it just needs a negative value :)
02 February 2006, 05:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.