LightAsset#

class gs_nyx.nyx_py_sdk.LightAsset#

Bases: object

A scene light. The active fields depend on ‘type’; type-specific accessors raise RuntimeError if used on the wrong type.

Constructors

LightAsset()

Construct a default-initialized light asset.

Attributes

area_position

World-space position of the area light.

area_range

Maximum distance over which the area light affects geometry.

area_rotation

World-space rotation of the area light.

area_shape

Shape of the area light emitter.

color

Linear RGB color of the light.

directional_direction

World-space direction the directional light points along.

intensity

Intensity of the light, interpreted in the unit given by 'unit'.

point_position

World-space position of the point light.

point_range

Maximum distance over which the point light affects geometry.

shadow

If True, this light casts shadows.

spot_direction

World-space direction the spot light points along.

spot_innerAngle

Inner cone half-angle, in degrees, where the light is at full intensity.

spot_outerAngle

Outer cone half-angle, in degrees.

spot_position

World-space position of the spot light.

spot_range

Maximum distance over which the spot light affects geometry.

type

Kind of light; determines which type-specific accessors are valid.

unit

Photometric unit used to interpret 'intensity'.

uuid

Unique identifier of the light asset.