Render Elements via Maxscript

Hi,

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

Forget to say… iy’s Vray 1.5 RC2

Thanks!

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.

Best regards,
Vlado

glad to know, we stumbled across this as well :wink:

thanks for your efforts!
michael

Hi Vlado,

I’ve try to find a way to make it working with the classID but, wasn’t able to do it :frowning:

So, I will wait for the next release.