EnvironmentLayer¶
-
class
EnvironmentLayer¶ -
-
property
name¶ The name of the environment layer.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
visibility¶ The environment layer visibility.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
duplicate()¶ Duplicate this environment layer.
- Returns
The duplicated environment layer.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
remove()¶ Delete this environment layer.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
assign_environment(surface, env)¶ Assign an
Environmentto the givenSurfaceinto the currentEnvironmentLayer.- Parameters
surface (Surface) -- Surface on which to assign the environment.
env (Environment) -- Environment to assign.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
assign_global_environment(env)¶ Define the global
Environmentinto the currentEnvironmentLayer.- Parameters
env (Environment) -- New global
Environment.- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
remove_environment_assignment(surface)¶ Remove the environment assignment on the given
Surface.- Parameters
surface (Surface) -- Surface on which to remove the environment.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
remove_global_environment()¶ Remove the global environment into the current
EnvironmentLayer.- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
get_environment_assignment(surface)¶ Get the environment assignment on the given
Surfaceif it exists. ReturnNoneif not.- Parameters
surface (Surface) -- Surface on which to get the material assignment.
- Returns
The
Environmentassigned to the givenSurface. Returns nullptr if no environment is assigned.- Return type
Environment or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
get_global_environment()¶ Get the global
Environmentasigned into the currentEnvironmentLayer.- Returns
The global
Environmentassigned into the currentEnvironmentLayer. ReturnNoneif no globalEnvironmentif assigned.- Return type
Environment or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property