Ambient Light from remote

Typically: "How do I... ", "How can I... " questions
Post Reply
Posts: 6
Joined: 13 May 2018, 11:45

Ambient Light from remote

Post by jnaor » 10 Jun 2018, 15:20


1. Is it possible to change the ambient light from remote API / via a script?
2. For some reason I do not see any effect of the ambient light on a textured plane (which is affected by a spotlight in the same scene.) What am I doing wrong?


Site Admin
Posts: 7020
Joined: 14 Dec 2012, 00:25

Re: Ambient Light from remote

Post by coppelia » 12 Jun 2018, 10:29


yes, you can. But you'll have to do this indirectly by calling a script function via simxCallScriptFunction. Inside of the script function, use sim.setArrayParameter(sim.arrayparam_ambient_light,color).

Your textured shape might not be influenced by light if the texture Apply mode is not modulate.


Post Reply