create_layers

compas_rhino.utilities.create_layers(layers)[source]

Create Rhino layers from a dictionary.

Parameters

layers (dict) – A dictionary of nested layer definitions. The keys of the dict are the layer names. The corresponding values define optional layer properties and nested layers.

Examples

layers = {'COMPAS', {'layers': {
    'Datastructures': {'color': (255, 0, 0), 'layers': {
        'Mesh': {},
        'Network': {}
    }},
    'Geometry': {'color': (0, 0, 255),'layers': {
        'Point': {},
        'Vector': {}
    }},
}}}

create_layers_from_dict(layers)