It looks like you're new here. If you want to get involved, click one of these buttons!
I need to delete layers related to current cellview.
previous_cell_layer = None active_cell_view_index = current_view.active_cellview().index() for layer in current_view.each_layer(): if layer.cellview() < active_cell_view_index: previous_cell_layer = layer elif layer.cellview() == active_cell_view_index: current_view.delete_layer(layer)
but I get "Unexpected object type (expected argument of class LayerPropertiesIterator, got LayerPropertiesNodeRef) in LayoutView.delete_layer" in 0.25.9.
What is proper way to do this in Python? By the word, how to insert layer at before other layers (== begin_layers())?