VRaySceneModifierInterface & lights

hi!

I have a VRayPlugin with a VRaySceneModifierInterface that i use to add other plugins in a scene (at preFrameBegin).
Everything works fine for meshes, point clouds, instancers… however, when i try to add a light (LightRectangle for example), i can see the shape of the light (the rectangle), but the light isn’t lighting the scene… am i doing something wrong?

thanks in advance!

You will need to add the lights in preRenderBegin(), before the direct light manager has cached them.

Best regards,
Vlado

ok thanks i’ll try that!