Database
- class Database
-
- property active_model
The active model.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_material_group
The active material group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_texture_group
The active texture group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_background_group
The active background group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_environment_group
The active environment group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_overlay_group
The active overlay group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_postprocess_group
The active postprocess group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_sensor_group
The active sensor group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_material
The active material.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_background
The active background.
- Type
Background or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_environment
The active environment.
- Type
Environment or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_overlay
The active overlay.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_postprocess
The active postprocess.
- Type
Postprocess or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property active_sensor
The active sensor.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- save()
Save the database.
- Returns
True
if successful.- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- save_and_clean(save_cache)
Save and clean the database.
- Parameters
save_cache (bool) -- Whether to save the cache or not.
- Returns
True
if successful.- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- save_as(filename, save_cache)
Save the database to another file.
- quick_save_as(filename)
Quickly save the database to another file, without any optimization.
- Parameters
filename (str) -- The new database filename.
- Returns
True
if successful.- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- close()
Close the database
- find_camera(id)
Find a camera by id.
- list_cameras(recursive=True)
List the cameras of the database.
- create_camera(group=None)
Create a camera.
- Parameters
group (CameraGroup or None) -- Group of the new camera, or
None
to put the camera at the root of the hierarchy.- Returns
The new camera.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- find_camera_group(id)
Find a camera group by id.
- Parameters
id (str) -- Camera group id to find.
- Returns
The camera group found or
None
if not found.- Return type
CameraGroup or None
- list_camera_groups(recursive=True)
List the camera groups of the database.
- create_camera_group(name, parent_group=None)
Create a camera group.
- Parameters
name (str) -- Name of the new group.
parent_group (CameraGroup or None) -- Parent group of the new group, or
None
to put the group at the root of the hierarchy.
- Returns
The new group.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- find_model(id)
Find a model by id.
- list_models()
List the models of the database.
- create_material_group(name)
Create a new material group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- find_material_group(id)
Find a material group by id.
- list_material_groups()
List the material groups of the database.
- Returns
The list of material groups in the database.
- Return type
- create_texture_group(name)
Create a new texture group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- find_texture_group(id)
Find a texture group by id.
- Parameters
id (str) -- Texture group id to find.
- Returns
The texture group found or
None
if not found.- Return type
TextureGroup or None
- list_texture_groups()
List the texture groups of the database.
- Returns
The list of texture groups in the database.
- Return type
- create_background_group(name)
Create a new background group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- find_background_group(id)
Find a background group by id.
- list_background_groups()
List the background groups of the database.
- Returns
The list of background groups in the database.
- Return type
- create_environment_group(name)
Create a new environment group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- find_environment_group(id)
Find a environment group by id.
- list_environment_groups()
List the environment groups of the database.
- Returns
The list of environment groups in the database.
- Return type
- create_overlay_group(name)
Create a new overlay group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- find_overlay_group(id)
Find a overlay group by id.
- Parameters
id (str) -- Overlay group id to find.
- Returns
The overlay group found or
None
if not found.- Return type
OverlayGroup or None
- list_overlay_groups()
List the overlay groups of the database.
- Returns
The list of overlay groups in the database.
- Return type
- create_postprocess_group(name)
Create a new postprocess group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- find_postprocess_group(id)
Find a postprocess group by id.
- list_postprocess_groups()
List the postprocess groups of the database.
- Returns
The list of postprocess groups in the database.
- Return type
- create_sensor_group(name)
Create a new sensor group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- find_sensor_group(id)
Find a sensor group by id.
- Parameters
id (str) -- Sensor group id to find.
- Returns
The sensor group found or
None
if not found.- Return type
SensorGroup or None
- list_sensor_groups()
List the sensor groups of the database.
- Returns
The list of sensor groups in the database.
- Return type
- create_configuration_rule(name)
Create a new configuration rule in the database.
- Parameters
name (str) -- Name of the configuration rule.
- Returns
The newly created configuration rule.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- find_configuration_rule(id)
Find a configuration rule by id.
- list_configuration_rules()
List the configuration rules of the database.
- Returns
The list of configuration rules in the database.
- Return type
- export_kdr(filename, products, version=0)
Export the specified products to a KDR file.
- Parameters
- Raises
FileNotFoundError -- If the destination directory does not exist.
ValueError -- If KDR version is not valid.
ValueError -- If some products uses features that are not compatible with specified KDR version.
- export_kdc(filename, products, version=0)
Export the specified products to a KDC file.
- Parameters
- Raises
FileNotFoundError -- If the destination directory does not exist.
ValueError -- If KDR version is not valid.
ValueError -- If some products uses features that are not compatible with specified KDR version.
- object_has_metadata_key(id, key)
Check if the metadata has a key registered on a specific object.
- object_metadata_value(id, key)
Get the metadata value associated to the
key
from the given object.
- set_object_metadata_value(id, key, new_value)
Store a metadata value to the given object and key.
- Parameters
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- object_metadata_store(id)
Get all the metadata keys and values from an object.
- set_object_metadata_store(id, store)
Set the metadata store of an object.
- delete_object_metadata_key(id, key)
Remove a key from the metadata associated to an object.
- Parameters
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- delete_object_metadata(id)
Clean the metadata associated to an object.
- Parameters
id (str) -- Id of an object from the database.
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- list_product_key_animations()
List all the
ProductKeyAnimation
.- Returns
The list of
ProductKeyAnimation
in the database.- Return type
- find_product_key_animation(id)
Find an
ProductKeyAnimation
by id.- Parameters
id (str) --
ProductKeyAnimation
id to find.- Returns
The
ProductKeyAnimation
found orNone
if not found.- Return type
- create_camera_bookmark_animation(name)
Create a new
CameraBookmarkAnimation
in the database.- Parameters
name (str) -- Name of the
CameraBookmarkAnimation
.- Returns
The newly created
CameraBookmarkAnimation
.- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- list_camera_bookmark_animations()
List all the
CameraBookmarkAnimation
.- Returns
The list of
CameraBookmarkAnimation
in the database.- Return type
- find_camera_bookmark_animation(id)
Find an
CameraBookmarkAnimation
by id.- Parameters
id (str) --
CameraBookmarkAnimation
id to find.- Returns
The
CameraBookmarkAnimation
found orNone
if not found.- Return type
- create_camera_bezier_path_animation(name)
Create a new
CameraBezierPathAnimation
in the database.- Parameters
name (str) -- Name of the
CameraBezierPathAnimation
.- Returns
The newly created
CameraBezierPathAnimation
.- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- list_camera_bezier_path_animations()
List all the
CameraBezierPathAnimation
.- Returns
The list of
CameraBezierPathAnimation
in the database.- Return type
- find_camera_bezier_path_animation(id)
Find an
CameraBezierPathAnimation
by id.- Parameters
id (str) --
CameraBezierPathAnimation
id to find.- Returns
The
CameraBezierPathAnimation
found orNone
if not found.- Return type
- create_configuration_key_animation(name)
Create a new
ConfigurationKeyAnimation
in the database.- Parameters
name (str) -- Name of the
ConfigurationKeyAnimation
.- Returns
The newly created
ConfigurationKeyAnimation
.- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- list_configuration_key_animations()
List all the
ConfigurationKeyAnimation
.- Returns
The list of
ConfigurationKeyAnimation
in the database.- Return type
- find_configuration_key_animation(id)
Find an
ConfigurationKeyAnimation
by id.- Parameters
id (str) --
ConfigurationKeyAnimation
id to find.- Returns
The
ConfigurationKeyAnimation
found orNone
if not found.- Return type
- create_channels_simple_animation(name)
Create a new
ChannelsSimpleAnimation
in the database.- Parameters
name (str) -- Name of the
ChannelsSimpleAnimation
.- Returns
The newly created
ChannelsSimpleAnimation
.- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- create_channels_curve_animation(name)
Create a new
ChannelsCurveAnimation
in the database.- Parameters
name (str) -- Name of the
ChannelsCurveAnimation
.- Returns
The newly created
ChannelsCurveAnimation
.- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- list_channels_simple_animations()
List all the
ChannelsSimpleAnimation
.- Returns
The list of
ChannelsSimpleAnimation
in the database.- Return type
- list_channels_curve_animations()
List all the
ChannelsCurveAnimation
.- Returns
The list of
ChannelsCurveAnimation
in the database.- Return type
- list_surface_baked_animations()
List all the
SurfaceBakedAnimation
.- Returns
The list of
SurfaceBakedAnimation
in the database.- Return type
- find_channels_simple_animation(id)
Find an
ChannelsSimpleAnimation
by id.- Parameters
id (str) --
ChannelsSimpleAnimation
id to find.- Returns
The
ChannelsSimpleAnimation
found orNone
if not found.- Return type
- find_channels_curve_animation(id)
Find an
ChannelsCurveAnimation
by id.- Parameters
id (str) --
ChannelsCurveAnimation
id to find.- Returns
The
ChannelsCurveAnimation
found orNone
if not found.- Return type
- find_surface_baked_animation(id)
Find an
SurfaceBakedAnimation
by id.- Parameters
id (str) --
SurfaceBakedAnimation
id to find.- Returns
The
SurfaceBakedAnimation
found orNone
if not found.- Return type
- list_texture_animations()
List all the
TextureAnimation
.- Returns
The list of
TextureAnimation
in the database.- Return type
- find_texture_animation(id)
Find an
TextureAnimation
by id.- Parameters
id (str) --
TextureAnimation
id to find.- Returns
The
ProductKeyAnimaTextureAnimationtion
found orNone
if not found.- Return type
- is_r3dc()
Check if the database is a R3DC database.
- Returns
Whether the database is a R3DC database or not.
- Return type
- apply_vcd(vcd)
Apply VCD to the database.
- Parameters
vcd (str) -- The VCD to be applied.
- Raises
ReadOnlyError -- If
Database
is in read only mode.