Select Vraylight and off
I have a problem in one script and I'm need a help please.
I am selecting a series of lights, some VRayLight and others do not. To turn off some lights use $lights.enabled = off, but some lights use the command $lights.on = off as an example are the photometrics and Vraylights ... When I use $lights.on = off gives the following error "- Unknown property:" on "in $ VRaySun: @ Sun_Cam_portaria [149.746979, -227.845520,0.000000]" How do we work? There is a class for vraylights?