VRAY Material Settings Update

Hi, here is the script you need

#! python3
import rh8VRay as vray

with vray.Scene.Transaction() as t:
    for brdf in [vray.Scene[material.brdf] for material in vray.Scene.Materials]:
        if brdf.Type != "BRDFVRayMtl":
            continue

        print(f"Processing: \"{brdf.Name}\" ...")
        brdf.fresnel_ior_float = 1.6
        brdf.translucency = 6
        brdf.translucency_color_color = brdf.diffuse_color
        brdf.translucency_amount = 0.3
        brdf.bump_amount_float = 40

Mind that this is python 3 code for Rhino 8
for IronPython 2.7 (R7) the script would look a bit different

2 Likes