Light¶
-
class
Light¶ -
-
property
name¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis 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
Noneif the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
enabled¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
position¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
rotation¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
color¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
intensity¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
shadow_intensity¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
remove()¶ Delete this light.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
CylinderAreaLight¶
-
class
CylinderAreaLight¶ Base class:
Light-
property
name¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis 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
Noneif the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
enabled¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
position¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
rotation¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
color¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
intensity¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
shadow_intensity¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
attenuation_type¶ The light attenuation type.
Note
When
boundedAttenuationisTrue, the attenuation type affects how the light is attenuated betweenattenuationFullEffectandattenuationFalloff.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
bounded_attenuation¶ Whether the light attenuation is bounded by
attenuationFullEffectandattenuationFalloff.- Type
- Raises
ReadOnlyError -- If
Databaseis 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
boundedAttenuationisTrue.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If
attenuationFullEffect>attenuationFalloffor 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
boundedAttenuationisTrue.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If
attenuationFalloff<attenuationFullEffector if trying to set a negative distance.
-
property
diameter¶ The diameter (in meters) of the cylinder.
- Type
- Raises
ReadOnlyError -- If
Databaseis 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
Databaseis in read only mode.ValueError -- If trying to set a negative size.
-
remove()¶ Delete this light.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
OmniLight¶
-
class
OmniLight¶ Base class:
Light-
property
name¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis 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
Noneif the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
enabled¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
position¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
rotation¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
color¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
intensity¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
shadow_intensity¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
diameter¶ The diameter of the light (in meters).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative diameter.
-
property
attenuation_type¶ The light attenuation type.
Note
When
boundedAttenuationisTrue, the attenuation type affects how the light is attenuated betweenattenuationFullEffectandattenuationFalloff.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
bounded_attenuation¶ Whether the light attenuation is bounded by
attenuationFullEffectandattenuationFalloff.- Type
- Raises
ReadOnlyError -- If
Databaseis 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
boundedAttenuationisTrue.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If
attenuationFullEffect>attenuationFalloffor 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
boundedAttenuationisTrue.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If
attenuationFalloff<attenuationFullEffector if trying to set a negative distance.
-
remove()¶ Delete this light.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
PlaneAreaLight¶
-
class
PlaneAreaLight¶ Base class:
Light-
property
name¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis 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
Noneif the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
enabled¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
position¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
rotation¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
color¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
intensity¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
shadow_intensity¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
attenuation_type¶ The light attenuation type.
Note
When
boundedAttenuationisTrue, the attenuation type affects how the light is attenuated betweenattenuationFullEffectandattenuationFalloff.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
bounded_attenuation¶ Whether the light attenuation is bounded by
attenuationFullEffectandattenuationFalloff.- Type
- Raises
ReadOnlyError -- If
Databaseis 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
boundedAttenuationisTrue.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If
attenuationFullEffect>attenuationFalloffor 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
boundedAttenuationisTrue.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If
attenuationFalloff<attenuationFullEffector if trying to set a negative distance.
-
property
width¶ The width (in meters) of the plane.
- Type
- Raises
ReadOnlyError -- If
Databaseis 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
Databaseis in read only mode.ValueError -- If trying to set a negative size.
-
remove()¶ Delete this light.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
SkyLight¶
-
class
SkyLight¶ Base class:
Light-
property
name¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis 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
Noneif the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
enabled¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
position¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
rotation¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
color¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
intensity¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
shadow_intensity¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
top_angle¶ The sky top angle (in degrees in [-90, 90] range).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If
topAngle<=bottomAngleor if not in [-90, 90] range.
-
property
bottom_angle¶ The sky bottom angle (in degrees in [-90, 90] range).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If
bottomAngle>=topAngleor if not in [-90, 90] range.
-
remove()¶ Delete this light.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
SpotLight¶
-
class
SpotLight¶ Base class:
Light-
property
name¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis 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
Noneif the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
enabled¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
position¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
rotation¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
color¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
intensity¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
shadow_intensity¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
diameter¶ The diameter of the light (in meters).
- Type
- Raises
ReadOnlyError -- If
Databaseis 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
Databaseis in read only mode.
-
property
falloff¶ The falloff of the spot (in degrees in [0, 175] range).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If
falloff<hotSpotor 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
Databaseis in read only mode.ValueError -- If
hotSpot>falloffor if not in [0, 175] range.
-
property
attenuation_type¶ The light attenuation type.
Note
When
boundedAttenuationisTrue, the attenuation type affects how the light is attenuated betweenattenuationFullEffectandattenuationFalloff.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
bounded_attenuation¶ Whether the light attenuation is bounded by
attenuationFullEffectandattenuationFalloff.- Type
- Raises
ReadOnlyError -- If
Databaseis 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
boundedAttenuationisTrue.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If
attenuationFullEffect>attenuationFalloffor 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
boundedAttenuationisTrue.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If
attenuationFalloff<attenuationFullEffector if trying to set a negative distance.
-
remove()¶ Delete this light.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
SunLight¶
-
class
SunLight¶ Base class:
Light-
property
name¶ The name of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis 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
Noneif the light is at the root of the hierarchy.- Type
LightGroup or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
enabled¶ The light enabled state.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
position¶ The light position in world.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
rotation¶ The light rotation in world (in degrees).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
color¶ The color of the light.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
intensity¶ The light intensity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
cast_shadow¶ Whether the light casts shadows.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
shadow_intensity¶ The shadow intensity (the intensity of the light when in shadows).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative intensity.
-
property
shadow_integrity¶ The shadow integrity.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
diameter¶ The diameter of the light (in meters).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative diameter.
-
remove()¶ Delete this light.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property