ScriptSpot home

Forum topic · General Scripting

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

By Edward Snowden · 2020-10-21

Description

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 (2)
miauu

.



for o in lights where classOf o == VRayLight do o.enable_viewport_shading = off
Reply to miauu
Edward Snowden

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