ScriptSpot

Forum topic · General Scripting

Vray Render Setup

By Mrjacks2o · 2018-08-10

Description

Hi Everyone
In the Vray Render window under Image sampler (Antialiasing)
where it says (Render Mask) i would like to select "None" and or "Selected" with max script.
been trying to figure it out but no luck also attached an image.

thank you in advance.

Attachments
Comments (3)

.

miauu · 2018-08-10

To set it to NONE:


aa = renderers.current
aa.imageSampler_renderMask_type = 0

To set it to SELECTED:


aa = renderers.current
aa.imageSampler_renderMask_type = 2

If 0 and 2 not give you the correct result, due to VRAy version differences then try other numbers. But NONE should be alwas 0.
The vray should be the active renrerer.

Mrjacks2o · 2018-08-14

Thank you Miauu! works great.