How to disable "Intensity Rays" in viewport by default when creating lights?

Just noticed that after the latest update the intensity rays are enabled in the viewport every time a new light is created (plane/sphere). Is there any way to disable this by default?

It’s really annoying having to turn that off every time a new light is created. Viewport gets really messy when that’s on with a lot of lights in scene…

Hi, thanks for posting. You can use a script to turn off intensity rays. The command for this is

$.intensityRaysOn = off

Paste this command in a notepad file and save it as .ms file, for example RaysOff.ms
Select all the lights you want this checker disabled and paste the RaysOff.ms in your viewport.
Use the $.intensityRaysOn = on to reverse the process.

well… that’s handy but not exactly what I was looking for…

They still show by default whenever a new light is created…

I don’t want them to appear at all

Agreed. I don’t normally need them on and end up shutting them off for 95% of the lights.

No way to change the default behavior, I’m afraid. Here’s a little script to enable/disable the parameter for all VRayLights:


select (for o in $* where classof o == VRayLight collect o)
for each in selection do
(
case each.intensityRaysOn of (
true: each.intensityRaysOn=false
false: each.intensityRaysOn=true
)
)
clearSelection()​

Make a button out of it.

ok… until then

Thank you though… That script assigned to a button does help! Appreciate it!

Max 2024.2 has an option to define custom defaults:

FUCK YAH!!! Yavor for the win!!! Awesome :sunglasses: