How to have nodes without shadows

Hallo

Ongoing from my previous discussions/question, how can I get a node to cast a shadow. Documentation (c++) does not seem to exist.

  VRayObjectProperties noShadows = renderer()->newPlugin< VRayObjectProperties>();

  noShadows.set_shadows_visibility(false);
  noShadows.setValue("nodes", billList);

Here I am trying to set list of nodes with no shadows. This does not work. Can you please provide a method of removing shadows to specific nodes (based on GeomStatic).

Anton

This is how I did it with Python:

--create VRay Object Properties plugin
obj_props = renderer.classes.VRayObjectProperties("obj_props_name")

--connect the created VRayObjectProperties plugin to the Node plugin that it needs to affect

geo = renderer.classes.Node.getInstances()
geo[1].object_properties = obj_props

--turn off shadows
obj_props.render_stats_use = True
obj_props.shadows_visibility = False

Changing parameters in the VRayObjectProperties requires a restart to take effect.

I’m guessing you can translate it to C++, if not, do say so, so I can ask a dev for help.