OpenNi2 - Python : How turn on-off IR and set exposure time

Hello everybody,

I find the option to turn on/off the autoexposure on the rgb camera :
self.rgb_stream =
self.camera_rgb_setting = openni2.CameraSettings(self.rgb_stream)

I tried to write similar code to access at the IR camera’s parameters : autoexposure , ON/OFF IR projector . Without success.
Nevertheless, the Viewer example of OpenNi2 could turn ON/OFF IR projector , set the exposure time of IR Camera.

Someone would have an example to control the IR Camera :

  • Set the exposure time
  • Set the gain
  • Turn on/off IR projector .

with OpenNi2 on Python 3 ?

Thank you