Render UI question


#1

Hi everyone. I’m sorry to bother you all with another question so soon after the last one. I’m trying to write some python scripts to automate some render setups (this time with mental ray) And I’m trying to set the min sample level for Legacy sampling mode. The problem is that the control for this seems to be blacked out by the default adaptive sampling mode, and I have to switch to custom mode to access it, even with using setAttr command.

So I tried to find a way to enable the custom sampling mode by script, but can’t find the command anywhere. The closest solution I came to was to use mel.eval() to run the function directly, but here I ran into another problem lol. That function does not exists until the Quality tab in Render settings is selected, since it’s a UI function.

I would deeply appreciate any help. I’m going nuts trying to figure this out!

Thank you!