Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Max P
16
Years of Service
User Offline
Joined: 23rd Jan 2010
Location:
Posted: 30th Jun 2011 15:52 Edited at: 30th Jun 2011 17:26
edit: Found a solution

I need to get the color of a light, is there a way to do this?
You can get all the properties of a light except the color accoarding to the help file.

Quote: "LIGHT EXIST : Return Integer=LIGHT EXIST(Light Number)
LIGHT TYPE : Return Integer=LIGHT TYPE(Light Number)
LIGHT VISIBLE : Return Integer=LIGHT VISIBLE(Light Number)
LIGHT RANGE : Return Float=LIGHT RANGE(Light Number)
LIGHT POSITION X : Return Float=LIGHT POSITION X(Light Number)
LIGHT POSITION Y : Return Float=LIGHT POSITION Y(Light Number)
LIGHT POSITION Z : Return Float=LIGHT POSITION Z(Light Number)
LIGHT DIRECTION X : Return Float=LIGHT DIRECTION X(Light Number)
LIGHT DIRECTION Y : Return Float=LIGHT DIRECTION Y(Light Number)
LIGHT DIRECTION Z : Return Float=LIGHT DIRECTION Z(Light Number)
LIGHT COLOR ???
"
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 30th Jun 2011 16:06
If there's no command to find it, you should have an array that keeps the properties of your light. When you change the colur of the light, the array will also update and you can fetch the data from there.

Max P
16
Years of Service
User Offline
Joined: 23rd Jan 2010
Location:
Posted: 30th Jun 2011 17:31
I'm using an array for my lights, but the light system from Extends changes the id's of the lights. I found a workaround to get the right id so everything is working fine now. Thanks for your advice

Login to post a reply

Server time is: 2026-07-10 15:30:56
Your offset time is: 2026-07-10 15:30:56