Light does not update

Light does not update

Anonymous
Not applicable
841 Views
4 Replies
Message 1 of 5

Light does not update

Anonymous
Not applicable

Hey Guys

 

My problem is, that the light-intensity does not update in the view after altering the value via script.

Only if I toggle "use Temerature" on and off It updates. Doing that by script does not work either.

 

What am I doing wrong?

 

And why do I have to put a value of 1000000 to get a result of 1,00 in the lightproperties? *sorry python noobie*

 

 

I used this command:

 

findNode('PointLight').fields().setReal32('intensity', 1000000)

 

Thx

 

Simon

 

 

Here is a screencast demonstating my problem:

 

0 Likes
Accepted solutions (1)
842 Views
4 Replies
Replies (4)
Message 2 of 5

seiferp
Community Manager
Community Manager
Accepted solution

Just:

 

node = selectNode('PointLight')

getSelectedNode().setLightIntensity(10)

 

Cheers

Pascal

Message 3 of 5

Anonymous
Not applicable

Thx works as expected 😄

0 Likes
Message 4 of 5

Anonymous
Not applicable

Can't find a proper command for the Diffuse/Glossy value?

 

Is it possible to transfer all of these to Light Link Sets? I've tryed:

 

findLightLinkSet('Pointlight_SET').setIntensity(0)

 

But unfortunatly the cmd "setIntensity(0)" does not exist... Can't find anythin in the documentation und can't drag the  Light Set in der Node Editor...

0 Likes
Message 5 of 5

seiferp
Community Manager
Community Manager

Hey,

 

node=selectNode('PointLight')

getSelectedNode().setDiffuseLightColor(1, 0, 1)

 

should do the job.

 

No Idea what you want to do with the LightLink set? They are made for Local lighting. Means exclude or include Geometry from Lighting.

 

Cheers

0 Likes