LightingLayer¶
-
class
LightingLayer¶ -
-
property
name¶ The name of the layer.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
visible¶ The layer visibility.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
exposure¶ The layer exposure.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
gamma¶ The layer gamma.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
format¶ The layer format.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
duplicate()¶ Duplicate this lighting layer.
- Returns
The duplicated layer.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
remove()¶ Delete this lighting layer.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_color(id)¶ Find a color by id.
- Parameters
id (str) -- Color id to find.
- Returns
The color found or
Noneif not found.- Return type
- Raises
InvalidIdFormat -- If
idis not in GUID format.
-
list_colors()¶ List the colors of the layer.
- Returns
The list of colors of the layer.
- Return type
-
create_color(name)¶ Create a new color in this layer.
- Parameters
name (str) -- Name of the color.
- Returns
The newly created color.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_light_group(id)¶ Find a light group by id.
- Parameters
id (str) -- Light group id to find.
- Returns
The light group found or
Noneif not found.- Return type
LightGroup or None
- Raises
InvalidIdFormat -- If
idis not in GUID format.
-
list_light_groups(recursive = True)¶ List the light groups of this layer.
-
create_light_group(name, group = None)¶ Create a new light group.
- Parameters
name (str) -- The name of the group.
group (LightGroup or None) -- Parent group of the new group, or
Noneto put the group at the root of the hierarchy.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_light(id)¶ Find a light by id.
- Parameters
id (str) -- Light id to find.
- Returns
The light found or
Noneif not found.- Return type
- Raises
InvalidIdFormat -- If
idis not in GUID format.
-
list_lights(recursive = True)¶ List the lights of this layer.
-
create_spot_light(name, group = None)¶ Create a new spot light.
- Parameters
name (str) -- The name of the light.
group (LightGroup or None) -- Group of the new light, or
Noneto put the light at the root of the hierarchy.
- Returns
The newly created light.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
create_omni_light(name, group = None)¶ Create a new omni light.
- Parameters
name (str) -- The name of the light.
group (LightGroup or None) -- Group of the new light, or
Noneto put the light at the root of the hierarchy.
- Returns
The newly created light.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
create_sun_light(name, group = None)¶ Create a new sun light.
- Parameters
name (str) -- The name of the light.
group (LightGroup or None) -- Group of the new light, or
Noneto put the light at the root of the hierarchy.
- Returns
The newly created light.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
create_sky_light(name, group = None)¶ Create a new sky light.
- Parameters
name (str) -- The name of the light.
group (LightGroup or None) -- Group of the new light, or
Noneto put the light at the root of the hierarchy.
- Returns
The newly created light.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
create_mesh_area_light(name, group = None)¶ Create a new mesh area light.
- Parameters
name (str) -- The name of the light.
group (LightGroup or None) -- Group of the new light, or
Noneto put the light at the root of the hierarchy.
- Returns
The newly created light.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
create_plane_area_light(name, group = None)¶ Create a new plane area light.
- Parameters
name (str) -- The name of the light.
group (LightGroup or None) -- Group of the new light, or
Noneto put the light at the root of the hierarchy.
- Returns
The newly created light.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
create_cylinder_area_light(name, group = None)¶ Create a new cylinder area light.
- Parameters
name (str) -- The name of the light.
group (LightGroup or None) -- Group of the new light, or
Noneto put the light at the root of the hierarchy.
- Returns
The newly created light.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property