Notifications
Clear all

[Closed] Accessing mental ray render settings

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

4 Replies

Which maxversion are you using?

Sorry, using max 7

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
)

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