PositionLayer
- class PositionLayer
-
- 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 index
The index of this layer in the layer list.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- is_active()
Whether the position layer is active or not.
- Returns
The position layer's active state.
- Return type
- set_active_layer()
Set this position layer as active layer.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- duplicate()
Duplicate this position layer.
- Returns
The duplicated layer.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- remove(remove_configuration=True)
Delete this position layer.
- Parameters
remove_configuration (bool) -- If
True, delete the configuration rule for this position layer.- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- Cannot be removed if the position layer is the base layer.
- has_scene_object_position(object)
Returns whether the
SceneObject's position is in the currentPositionLayer.- Parameters
object (SceneObject) -- Object in the
PositionLayer.- Returns
Whether the
SceneObject's position is in the currentPositionLayer.- Return type
- remove_scene_object_position_from_layer(object)
Remove the
SceneObject's position from the currentPositionLayer.- Parameters
object (SceneObject) -- Scene Object which position is to be removed from the
PositionLayer.- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- set_scene_object_translation(object, translation)
Save the
SceneObject's translation into the currentPositionLayer.- Parameters
object (SceneObject) -- Scene Object to be in the
PositionLayer.translation (Vector3) -- Translation for the object to be in the
PositionLayer.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- scene_object_translation(object)
Returns the
SceneObjecttranslation in the currentPositionLayer.- Parameters
object (SceneObject) -- SceneObject in the
PositionLayer.- Returns
The object translation in the current
PositionLayer.- Return type
- Raises
ValueError -- If the position layer is not applied to this object.
- set_scene_object_rotation(object, rotation)
Save the
SceneObject's rotation into the currentPositionLayer, in degrees.- Parameters
object (SceneObject) -- SceneObject to be in the
PositionLayer.rotation (Vector3) -- Rotation for the object to be in the
PositionLayer.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- scene_object_rotation(object)
Returns the
SceneObjectrotation in the currentPositionLayer, in degrees.- Parameters
object (SceneObject) -- SceneObject in the
PositionLayer.- Returns
The object srotation in the current
PositionLayer.- Return type
- Raises
ValueError -- If the position layer is not applied to this object.
- set_scene_object_scale(object, scale)
Save the
SceneObject's scale into the currentPositionLayer.- Parameters
object (SceneObject) -- SceneObject to be in the
PositionLayer.scale (Vector3) -- Scale for the object to be in the
PositionLayer.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If the object is a kinematics object.
- scene_object_scale(object)
Returns the
SceneObjectscale in the currentPositionLayer.- Parameters
object (SceneObject) -- SceneObject in the
PositionLayer.- Returns
The object scale in the current
PositionLayer.- Return type
- Raises
ValueError -- If the position layer is not applied to this object.