Can I add The Light to Trace Set in VRay Next?

I want to control reflections on a per-object basis.

Can I add The Light to Trace Set in VRay Next?
It does not work when added with the vrayAddTraceSets command.

If you wish to add trace sets to an object via MaxScript, use the following commands in the MaxScript Listener:

m=vrayAddTraceSets $ --this would add trace sets to the selected object; you can replace $ with $Sphere002 to add an object for example

showproperties m --this shows the available properties of the trace set

m.reflect_exclude=#($VraySun001,$VrayLight001) --set light names in the brackets
m.refract_exclude=#($VraySun001,$VrayLight001)
m.reflect_exclude_type=0 --0 is exclude; 1 is include
m.refract_exclude_type=0

Example script, which includes only the sun in the reflections of an object:

m=vrayAddTraceSets $Teapot001
m.reflect_exclude_type=1
m.reflect_exclude=#($VraySun001)

thank you for the advice.

I said vrayAddTraceSets command doesn’t work.
This means that VRayLight is not excluded in Exclude mode.

In Include mode, VRayLight becomes invisible (opposite meaning), but nothing is reflected.

Probably a bug.

Confirmed with V-Ray 4.20.01 3ds Max 2020

Another question

Can I exclude V-RayLight using Trace set when Glossiness is 1.0 or less?

There is no way to disable V-RayLight’s Fake Spacular on the material side.

My bad, the solution used to work for V-Ray 3.6, however, it seems that it does not in V-Ray NEXT. Thanks for the report. I have forwarded the information to our developers for further analysis.

I had the same issue few months back ,and I’ve posted a scene too with comparison if that will help..please higher the priority of this
https://forums.chaosgroup.com/forum/…exclude-lights