Jump to content
  • 0

How to get colors from light


vedan

Question

Hi,

 

since I did a script collection for moving actors/things does not work for all types, I wanted to enhance it.

 

Light sources cannot be moved by SetActorPosition; they have to be destroyed and respawned at the new location.

 

Since user defined functions only accept three parameters, I need to read the RGB values of the light thingy so I can set them when respawning the light.

 

Nothing in the usual ACS info functions seems to help.

 

So: How do I get the RGB values of an existing light?

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

Are you talking about things like PointLight? The RGBI values (I for intensity) are placed in the light object's args[] array, with R as args[0] and I as args[3]. Oddly, I don't see a way to access these values from ACS. Keep in mind that light objects also have some flags (for additiveness or attenuation) that are not easily accessible either.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...