Product

class Product
property id

The id of the product.

Type

str, read-only

property name

The name of the product.

Type

str

Raises

ReadOnlyError -- If Database is in read only mode.

property active_aspect_layer

The active AspectLayer of this product.

Type

AspectLayer

Raises

ReadOnlyError -- If Database is in read only mode.

property active_environment_layer

The active EnvironmentLayer of this product.

Type

EnvironmentLayer

Raises

ReadOnlyError -- If Database is in read only mode.

property ssao_enabled

Whether the SSAO is enabled.

Type

bool

Raises

ReadOnlyError -- If Database is in read only mode.

property ssao_intensity

The SSAO intensity.

Type

float

Raises
property ssao_lightmaps_enabled

Whether the lightmaps are enabled when SSAO is enabled.

Type

bool

Raises

ReadOnlyError -- If Database is in read only mode.

property ssao_apply_transparent_surfaces

Whether the SSAO is applied to transparent surfaces.

Type

bool

Raises

ReadOnlyError -- If Database is in read only mode.

property ssao_radius

The SSAO radius when searching for occluders.

Type

float

Raises
property ssao_steps

The number of steps to use when computing SSAO.

Type

int

Raises
property ssao_bias

The SSAO bias.

Type

float

Raises
duplicate()

Duplicate this product.

Returns

The duplicated product.

Return type

Product

Raises

ReadOnlyError -- If Database is in read only mode.

remove()

Delete this product.

Raises

ReadOnlyError -- If Database is in read only mode.

list_aspect_layers(recursive = True)

List all the AspectLayer.

Parameters

recursive (bool) -- If True, list all aspect layers in the hierarchy, otherwise only aspect layers at the root are returned.

Returns

The list of AspectLayer in this product.

Return type

list(AspectLayer)

list_aspect_layer_groups(recursive = True)

List all the AspectLayerGroup.

Parameters

recursive (bool) -- If True, list all aspect layer groups in the hierarchy, otherwise only aspect layer groups at the root are returned.

Returns

The list of AspectLayerGroup in this product.

Return type

list(AspectLayerGroup)

create_aspect_layer(name)

Create a new AspectLayer in this product.

Parameters

name (str) -- Name of the AspectLayer.

Returns

The newly created AspectLayer.

Return type

AspectLayer

Raises

ReadOnlyError -- If Database is in read only mode.

list_environment_layers()

List all the EnvironmentLayer.

Returns

The list of EnvironmentLayer in this product.

Return type

list(EnvironmentLayer)

create_environment_layer(name)

Create a new EnvironmentLayer in this product.

Parameters

name (str) -- Name of the EnvironmentLayer.

Returns

The newly created EnvironmentLayer.

Return type

EnvironmentLayer

Raises

ReadOnlyError -- If Database is in read only mode.