create_layers_from_paths

compas_rhino.layers.create_layers_from_paths(names, separator='::')[source]

Create nested layers from a lst of hierarchical path strings.

Parameters:
nameslist[str]

The path strings of the nested layer structures.

separatorstr, optional

Separator between components of the layer path.

Returns:
None

Examples

The following snippet will created 2 nested layer structures:

  • COMPAS * Datastructures

    • Mesh

    • Graph

    • Geometry * Point * Vector

create_layers_from_paths([
    "COMPAS::Datastructures::Mesh",
    "COMPAS::Datastructures::Graph",
    "COMPAS::Geometry::Point",
    "COMPAS::Geometry::Vector",
])