x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to get intensity in blueprint

My goal is to use a Level blueprint to alter the intensity of a light and then return it back to the initial intensity. I don't see a GetIntensity node and do not know how to pull in this setting. If I select the light in the main editor and then use the context sensitivity in Blueprint I don't see a get that seems to work. I'm new to UE4 so any blueprint theory and how to's for this would be very helpful!

Product Version: Not Selected
Tags:
more ▼

asked May 04 '15 at 08:23 PM in Blueprint Scripting

avatar image

Fred5
1 1 2 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Light-Actors are a little bit strange. You have to access the internal light component to get the node you need:

alt text

Don't know why they didn't expose it in the point light itself.

more ▼

answered May 04 '15 at 08:41 PM

avatar image

spyro
1.7k 106 117 232

avatar image Fred5 May 04 '15 at 09:27 PM

Thank you! What type of node is the Light Component in the image above?

avatar image spyro May 04 '15 at 10:36 PM

Hi Fred5,

it's just a normal getter node. Just drag a pin out of point light and type 'get light component'.

avatar image Fred5 May 04 '15 at 11:10 PM

Got it! Thanks!

avatar image Fred5 May 04 '15 at 11:41 PM

When I wire this into a SetIntensity is says the the variable is not in scope and the int does not get set. Do I need another node between this setup and the SetIntensity?

avatar image RyanB STAFF May 05 '15 at 03:13 AM

Was it wired up like this? This is a simple level blueprint with 1 pointlight:

alt text

After playing and typing "ce light" at the console, the screen goes bright as expected.

avatar image Fred5 May 05 '15 at 04:09 PM

Here is how I have it wired and it will not allow a connection to the LightComponent from the SetIntensity target. Still getting 'not in scope'. alt text

avatar image spyro May 06 '15 at 08:23 AM

Im am not sure what exactly is your goal here. You first set the intensity to 0, and then you set it to 0 again (because that's the current value of intensity).

If you want to set it back to the original value you have to save it first into a variabale (there is no 'reset'-node unfortunately).

The 'not in scope' error is normal, I fear. The blueprint debugger is basically broken in the current state of the engine (4.7.6).

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question