I’m trying to add a render element via maxscript but I’ve got a little problem here.
If I use thoses lines:
re = maxOps.GetCurRenderElementMgr()
re.addRenderElement (VRaySelfIllumination elementName:(“Test_” + (VRaySelfIllumination as String)))
It work perfectly but, if I change my “VRaySelfIllumination” value to “VRayShadow”, it doesn’t work. It’s the only one I cannot add in the render elements. Vlado, is there a problem with this element ??
This is because two V-Ray plugins have the name “VRayShadow” - one is the render element, and the other is the VRayShadow shadow type.
You might be able to create the element by class id directly, but in any case I have changed the name of the render element to VRayShadows for the next RC.