AspectLayer¶
-
class
AspectLayer¶ -
-
property
name¶ The name of the aspect layer.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
group¶ The group of this aspect layer or
Noneif the aspect layer is at the root of the hierarchy.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
visibility¶ The aspect layer visibility.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
duplicate()¶ Duplicate this aspect layer.
- Returns
The duplicated aspect layer.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
remove()¶ Delete this aspect layer.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
assign_material(surface, material, uvset = 0)¶ Assign a
Materialto the givenSurfaceinto the currentAspectLayer.- Parameters
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
get_material_assignment_offset_u(surface)¶ Get the offset in the U direction of the material assignment on the given
Surface, in meters.- Parameters
surface (Surface) -- Surface on which to get the offset in the U direction.
- Returns
The offset in the U direction.
- Return type
- Raises
ValueError -- If the aspect layer is not applied on this surface.
-
set_material_assignment_offset_u(offset_u, surface)¶ Set the offset in the U direction of the material assignment on the given
Surface, in meters.- Parameters
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If the aspect layer is not applied on this surface.
-
get_material_assignment_offset_v(surface)¶ Get the offset in the V direction of the material assignment on the given
Surface, in meters.- Parameters
surface (Surface) -- Surface on which to get the offset in the V direction.
- Returns
The offset in the V direction.
- Return type
- Raises
ValueError -- If the aspect layer is not applied on this surface.
-
set_material_assignment_offset_v(offset_v, surface)¶ Set the offset in the V direction of the material assignment on the given
Surface, in meters.- Parameters
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If the aspect layer is not applied on this surface.
-
get_material_assignment_rotation(surface)¶ Get the rotation of the material assignment on the given
Surface, in degrees.- Parameters
surface (Surface) -- Surface on which to get the rotation.
- Returns
The rotation.
- Return type
- Raises
ValueError -- If the aspect layer is not applied on this surface.
-
set_material_assignment_rotation(rotation, surface)¶ Set the rotation of the material assignment on the given
Surface, in degrees.- Parameters
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If the aspect layer is not applied on this surface.
-
remove_material_assignment(surface)¶ Remove the material assignment on the given
Surface.- Parameters
surface (Surface) -- Surface from which to remove the material.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property