create_layers_from_path
- compas_rhino.layers.create_layers_from_path(path, separator='::')[source]
Create a nested layer structure from a hierarchical path string.
- Parameters:
- pathstr
The path string.
- separatorstr, optional
Separator between components of the layer path.
- Returns:
- None
Examples
The following snippet will created 3 nested layers, with “COMPAS” at the root level, “Datastructures” at the first nested level, and “Mesh” at the deepest level.
COMPAS * Datastructures
Mesh
create_layers_from_path("COMPAS::Datastructures::Mesh")