Currently selected layer

Hi,

I was wondering whether it’s possible to get the layer that is currently selected in the layer stack in napari? Thanks,

Avery

viewer.layers.selected will give you a list of all of the currently selected layers

1 Like

Thank you talley, much appreciated.

2 Likes