Light¶
-
class
Light
¶ -
-
property
name
¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
layer
¶ The parent lighting layer of this light.
- Type
LightingLayer, read-only
-
property
group
¶ The group of this light or
None
if the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
enabled
¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
position
¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
rotation
¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
color
¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
intensity
¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow
¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
shadow_intensity
¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity
¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
remove
()¶ Delete this light.
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
CylinderAreaLight¶
-
class
CylinderAreaLight
¶ Base class:
Light
-
property
name
¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
layer
¶ The parent lighting layer of this light.
- Type
LightingLayer, read-only
-
property
group
¶ The group of this light or
None
if the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
enabled
¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
position
¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
rotation
¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
color
¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
intensity
¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow
¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
shadow_intensity
¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity
¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
attenuation_type
¶ The light attenuation type.
Note
When
boundedAttenuation
isTrue
, the attenuation type affects how the light is attenuated betweenattenuationFullEffect
andattenuationFalloff
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
bounded_attenuation
¶ Whether the light attenuation is bounded by
attenuationFullEffect
andattenuationFalloff
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
attenuation_full_effect
¶ The distance (in meters) from light for which surfaces are illuminated without attenuation. It is only effective if
boundedAttenuation
isTrue
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
attenuationFullEffect
>attenuationFalloff
or if trying to set a negative distance.
-
property
attenuation_falloff
¶ The distance (in meters) from light for which surfaces are not illuminated anymore. It is only effective if
boundedAttenuation
isTrue
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
attenuationFalloff
<attenuationFullEffect
or if trying to set a negative distance.
-
property
diameter
¶ The diameter (in meters) of the cylinder.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative size.
-
property
length
¶ The length (in meters) of the cylinder.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative size.
-
remove
()¶ Delete this light.
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
OmniLight¶
-
class
OmniLight
¶ Base class:
Light
-
property
name
¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
layer
¶ The parent lighting layer of this light.
- Type
LightingLayer, read-only
-
property
group
¶ The group of this light or
None
if the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
enabled
¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
position
¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
rotation
¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
color
¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
intensity
¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow
¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
shadow_intensity
¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity
¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
diameter
¶ The diameter of the light (in meters).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative diameter.
-
property
attenuation_type
¶ The light attenuation type.
Note
When
boundedAttenuation
isTrue
, the attenuation type affects how the light is attenuated betweenattenuationFullEffect
andattenuationFalloff
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
bounded_attenuation
¶ Whether the light attenuation is bounded by
attenuationFullEffect
andattenuationFalloff
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
attenuation_full_effect
¶ The distance (in meters) from light for which surfaces are illuminated without attenuation. It is only effective if
boundedAttenuation
isTrue
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
attenuationFullEffect
>attenuationFalloff
or if trying to set a negative distance.
-
property
attenuation_falloff
¶ The distance (in meters) from light for which surfaces are not illuminated anymore. It is only effective if
boundedAttenuation
isTrue
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
attenuationFalloff
<attenuationFullEffect
or if trying to set a negative distance.
-
remove
()¶ Delete this light.
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
PlaneAreaLight¶
-
class
PlaneAreaLight
¶ Base class:
Light
-
property
name
¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
layer
¶ The parent lighting layer of this light.
- Type
LightingLayer, read-only
-
property
group
¶ The group of this light or
None
if the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
enabled
¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
position
¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
rotation
¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
color
¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
intensity
¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow
¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
shadow_intensity
¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity
¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
attenuation_type
¶ The light attenuation type.
Note
When
boundedAttenuation
isTrue
, the attenuation type affects how the light is attenuated betweenattenuationFullEffect
andattenuationFalloff
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
bounded_attenuation
¶ Whether the light attenuation is bounded by
attenuationFullEffect
andattenuationFalloff
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
attenuation_full_effect
¶ The distance (in meters) from light for which surfaces are illuminated without attenuation. It is only effective if
boundedAttenuation
isTrue
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
attenuationFullEffect
>attenuationFalloff
or if trying to set a negative distance.
-
property
attenuation_falloff
¶ The distance (in meters) from light for which surfaces are not illuminated anymore. It is only effective if
boundedAttenuation
isTrue
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
attenuationFalloff
<attenuationFullEffect
or if trying to set a negative distance.
-
property
width
¶ The width (in meters) of the plane.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative size.
-
property
height
¶ The height (in meters) of the plane.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative size.
-
remove
()¶ Delete this light.
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
SkyLight¶
-
class
SkyLight
¶ Base class:
Light
-
property
name
¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
layer
¶ The parent lighting layer of this light.
- Type
LightingLayer, read-only
-
property
group
¶ The group of this light or
None
if the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
enabled
¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
position
¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
rotation
¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
color
¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
intensity
¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow
¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
shadow_intensity
¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity
¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
top_angle
¶ The sky top angle (in degrees in [-90, 90] range).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
topAngle
<=bottomAngle
or if not in [-90, 90] range.
-
property
bottom_angle
¶ The sky bottom angle (in degrees in [-90, 90] range).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
bottomAngle
>=topAngle
or if not in [-90, 90] range.
-
remove
()¶ Delete this light.
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
SpotLight¶
-
class
SpotLight
¶ Base class:
Light
-
property
name
¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
layer
¶ The parent lighting layer of this light.
- Type
LightingLayer, read-only
-
property
group
¶ The group of this light or
None
if the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
enabled
¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
position
¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
rotation
¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
color
¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
intensity
¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow
¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
shadow_intensity
¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity
¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
diameter
¶ The diameter of the light (in meters).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative diameter.
-
property
target
¶ The target position of the spot in world.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
falloff
¶ The falloff of the spot (in degrees in [0, 175] range).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
falloff
<hotSpot
or if not in [0, 175] range.
-
property
hot_spot
¶ The hot spot (aperture) of the spot (in degrees in [0, 175] range).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
hotSpot
>falloff
or if not in [0, 175] range.
-
property
attenuation_type
¶ The light attenuation type.
Note
When
boundedAttenuation
isTrue
, the attenuation type affects how the light is attenuated betweenattenuationFullEffect
andattenuationFalloff
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
bounded_attenuation
¶ Whether the light attenuation is bounded by
attenuationFullEffect
andattenuationFalloff
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
attenuation_full_effect
¶ The distance (in meters) from light for which surfaces are illuminated without attenuation. It is only effective if
boundedAttenuation
isTrue
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
attenuationFullEffect
>attenuationFalloff
or if trying to set a negative distance.
-
property
attenuation_falloff
¶ The distance (in meters) from light for which surfaces are not illuminated anymore. It is only effective if
boundedAttenuation
isTrue
.- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If
attenuationFalloff
<attenuationFullEffect
or if trying to set a negative distance.
-
remove
()¶ Delete this light.
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
SunLight¶
-
class
SunLight
¶ Base class:
Light
-
property
name
¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
layer
¶ The parent lighting layer of this light.
- Type
LightingLayer, read-only
-
property
group
¶ The group of this light or
None
if the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
enabled
¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
position
¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
rotation
¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
color
¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
intensity
¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow
¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
shadow_intensity
¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity
¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
diameter
¶ The diameter of the light (in meters).
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.ValueError -- If trying to set a negative diameter.
-
remove
()¶ Delete this light.
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property