Set all "Enable Viewport Shading" to uncheck for all Lights in 3ds max scene?

How to disable/uncheck "Enable Viewport Shading" option for all VRaylights in a *.max scene? Default they're all checked and when a scene previously maintained by others, viewport performance is very weird with all lights affect viewport shading.

to disable them all. Nice day everyone. Thanks.

Comments

Comment viewing options

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

.

for o in lights where classOf o == VRayLight do o.enable_viewport_shading = off
nnq2603's picture

Thanks Miamuu about Enable viewport shading script

Thanks Miamuu about Enable viewport shading script. Have a nice day. Gonna try it soon.

Comment viewing options

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