How to mass turn-on "store with IR map" for all V-ray lights in a 3d max scene?

Can anyone suggest a line of code to enable/turn-on "Store with irradance map" in V-ray lights options panel for ALL V-ray lights on the scene? Thanks for reading and support.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
obaida's picture

you can use this

for i in lights where hasProperty i "storeWithIrradMap" do i.storeWithIrradMap = on 
nnq2603's picture

Thanks, works like a charm

Thanks Obaida, I use in scene and it works well. Have a nice weekend.
Turn On all "Store with IRR Map":
for i in lights where hasProperty i "storeWithIrradMap" do i.storeWithIrradMap = on

Turn Off all "Store with IRR Map":
for i in lights where hasProperty i "storeWithIrradMap" do i.storeWithIrradMap = off

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.