Hi all,
is there a way to set the 'Global max depth' for reflection and refraction independently?
cheers,
Steve
is there a way to set the 'Global max depth' for reflection and refraction independently?
cheers,
Steve
Important: Update Your Chaos Licensing by January 28, 2025
To ensure uninterrupted access to your licenses, an essential update is required by January 28, 2025. Failure to update your Chaos licensing will result in the loss of access to your licenses.import vray.utils as vr def setMaxDepth(reflMax=None, refrMax=None): refracAttrs = ["refraction_depth"] reflecDepth = ["trace_depth", "reflection_depth"] for node in vr.findByType("*"): allAttrs = vr.getPluginParams(node) for attr in refracAttrs: if refrMax and attr in allAttrs and int(node.get(attr)) < refrMax: node.set(attr, refrMax) for attr in reflecDepth: if reflMax and attr in allAttrs and int(node.get(attr)) < reflMax: node.set(attr, reflMax) setMaxDepth(reflMax=20, refrMax=10)
Comment