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
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