PDA

View Full Version : Accessing mental ray render settings


theotheo
02-01-2005, 01:26 PM
Hi!

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
"mental_ray_renderer.finalGatherRadius 50"
in a script, is this possible ?

-theo

magicm
02-01-2005, 03:33 PM
Which maxversion are you using?

theotheo
02-01-2005, 03:43 PM
Sorry, using max 7

magicm
02-01-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
)

theotheo
02-01-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.

again, thanks

edit :

DOH, it just needs a negative value :)

CGTalk Moderation
02-01-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.