Can I set the value of Luminosity of the Ambient light in Environment dialog via API?

Typically: "How do I... ", "How can I... " questions
Post Reply
wozxfdha
Posts: 51
Joined: 10 Jun 2021, 09:40

Can I set the value of Luminosity of the Ambient light in Environment dialog via API?

Post by wozxfdha »

Hi,

I check the APIs for light, only sim.setLightParameters can be used, and I want to set the value of Luminosity of the Ambient light in Environment dialog.

Can I do it via API? How?

Thanks.

fferri
Posts: 1187
Joined: 09 Sep 2013, 19:28

Re: Can I set the value of Luminosity of the Ambient light in Environment dialog via API?

Post by fferri »

Code: Select all

sim.setArrayParameter(sim.arrayparam_ambient_light,{0.1,0.1,0.1})

Post Reply