Cancel
Showing results for 
Search instead for 
Did you mean: 

How to get light source color?

Creator
Creator

Hi!

 

In "Advanced Lights" dialog I can customize a color of a light.

How do I extract it via API?

NXOpen::Light interface doesn't have any corresponding methods...

 

Thank you in advance

2 REPLIES 2

Re: How to get light source color?

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

What version of NX are you using?

The NX 11 API docs state (LightType enumeration):

For now, you can only modify lights of type LightType.Scene via automation languages.

and it looks like you can only change the intensity of the scene light:

For now, setting Light.Intensity may only be used for a scene light.

Re: How to get light source color?

Creator
Creator

I don't want to changed it.

How do I GET it?