Environment¶
-
class
Environment¶ -
-
property
name¶ The name of the environment.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
group¶ The group of the environment.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
gamma¶ The gamma value of the environment image.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
saturation¶ The color saturation of the environment image.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
mapping_type¶ The projection method for the type of HDRI image.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
inverted¶ Whether the projection of the environment image is inverted.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
orientation¶ The orientation of the environment in order to position it correctly with regard to the product.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
diffuse_exposure¶ The influence of the exposure of the environment on the diffuse layer of a material.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
lightmap_coloration¶ The influence of the environment color on the diffusion of the materials using lighting textures.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
specular_exposure¶ The influence of the exposure of the environment on the specular or reflection layer of a material.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
specular_resolution¶ The resolution of the image used for adjusting the mirroring in pixels.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
improve_mipmaps_quality¶ Whether to eliminate whitening and aliasing effects environment reflections on sharp geometries in scenes with very intense areas.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
background_exposure¶ The influence of the exposure of the environment on the background.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
altitude¶ The altitude of the background.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
background_resolution¶ The resolution of the image used for the background.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
alternative_background_map¶ The high resolution texture in a low dynamic range format (JPG, PNG...) to be used instead of the HDR environment for environment materials or
Noneif there is no map assigned.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
parallax_correction_type¶ The proxy surface type used in parallax correction.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
parallax_correction_aabb_min¶ The min of the bounding box used in parallax correction.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
parallax_correction_aabb_max¶ The max of the bounding box used in parallax correction.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
parallax_correction_hemisphere_center¶ The center of the hemisphere used in parallax correction.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
parallax_correction_hemisphere_radius¶ The radius of the hemisphere used in parallax correction.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
parallax_correction_surface¶ The surface used in parallax correction.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
local_env_product¶ The corresponding product id for the local environment.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
local_env_position¶ The origin point at which the local environment will be captured by providing the origin's XYZ coordinates.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
local_env_radius¶ The size of the capture box.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
local_env_resolution¶ The resolution of the environment texture at a chosen resolution.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
The tag of the surfaces to be ignored by the local environment.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
duplicate()¶ Duplicate this environment.
- Returns
The duplicated environment.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
encoded_data(format, compression = -1)¶ Get the encoded data of the environment.
- Parameters
- Returns
The encoded data.
- Return type
-
remove(force = False)¶ Delete this environment
Note
By default, only not used environments can be deleted (
InUseErroris raised otherwise), useforceto force deletion of used environments.- Parameters
force (bool) -- Force the deletion of the environment even if it is in use.
- Raises
InUseError -- If
forceisFalseand the environment is used.ReadOnlyError -- If
Databaseis in read only mode.
-
property