I am having a lot of trouble scripting vray render elements. This is what I have
re = maxOps.GetCurRenderElementMgr()
re.SetDisplayElements FALSE
theManager = maxOps.GetRenderElementMgr #Production
re.addrenderelement (VRayDiffuseFilter elementname"VRayDiffuseFilter"))
re.SetRenderElementFilename (0) ("C:\\DIFFUSEFILTER.PNG")
If I run this snippet and hit the render button, I get a 'scrambled' image. If I manually add the 'VRayDiffuseFilter' element and set the image path, it renders correctly. What am I missing?
Thanks in advance
re = maxOps.GetCurRenderElementMgr()
re.SetDisplayElements FALSE
theManager = maxOps.GetRenderElementMgr #Production
re.addrenderelement (VRayDiffuseFilter elementname"VRayDiffuseFilter"))
re.SetRenderElementFilename (0) ("C:\\DIFFUSEFILTER.PNG")
If I run this snippet and hit the render button, I get a 'scrambled' image. If I manually add the 'VRayDiffuseFilter' element and set the image path, it renders correctly. What am I missing?
Thanks in advance
Comment