Add Vray lights to Vray Fog with Array.
Well I'm getting back into scripting and learning as I go. I still need assistance on getting this to work though. I usually have trouble with getting into the deeper part of scripting for Vray.
I have this so far but I don't know how to get array part to work. I tried to add a picture if this helps. All I want is to add a group of selected VRay lights to the VRayEnvironmentFog list and turn off all lights for now. And I could have this written wrong to start with for all I know.
Vat = getAtmospheric 1
Vat.use_all_lights = true
for obj in (selection as array)
where classOf obj == lights do
Vat.lights --what goes here?