create_layers_from_dict

compas_rhino.layers.create_layers_from_dict(layers)[source]

Create Rhino layers from a dictionary.

Parameters:
layersdict[str, 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.

Returns:
None

Examples

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

create_layers_from_dict(layers)