Are these functions available in the API? If not, I would like to request them as new functions.
I felt the need for this functionality to pick up and remove multiple layers from the list of layers that meet certain criteria, such as name, layer type, etc. .selectedNodes() is not enough.
This code updates the display screen. However, this method is not good if there are multiple layers selected, because layers other than the active layer will also be involved. So I am looking for a way to manipulate the selection state of the layers, or a way to refresh the screen with a lighter action.
It seems odd to me that (‘toggle_layer_visibility’) makes the visibility state of all selected layers the same. It makes sense if visible layers switch to invisible and invisible layers switch to visible…