Hello! I am trying to control the render settings of VRay using a python script (as a tag on an object) and here is what I am doing :
But it is not working for me. How can I make it work please? I am not familiar with coding so I am still trying to figure things out. Thanks!
Code:
import c4d from c4d import gui def main(): obj = op.GetObject() rd = doc.GetActiveRenderData() min_subdivision = obj[c4d.ID_USERDATA,1] rd[c4d.SETTINGSIMAGESAMPLER_DMC_MINSUBDIVS] = min_subdivision main()
Comment