Page 1 of 1

how can i set light is enabled by Lua code in the simulation

Posted: 02 Dec 2021, 13:06
by quangabcd
I have a spot light and want to switch it during the simulation: either turn it on/off or change the color. There is no parameter for it and also setShapeColor does not work (it says the object is not a shape)

how can I do it

Re: how can i set light is enabled by Lua code in the simulation

Posted: 02 Dec 2021, 13:14
by coppelia
Hello,

have a look at sim.setLightParameters and object parameters related to lights.

Cheers

Re: how can i set light is enabled by Lua code in the simulation

Posted: 02 Dec 2021, 14:48
by quangabcd
thank you