ScriptSpot

Forum topic · General Scripting

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

By nnq2603 · 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 · 2020-10-31



for o in lights where classOf o == VRayLight do o.enable_viewport_shading = off

nnq2603 · 2020-11-12

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