You are here

Detect active layer?

How would one detect which layer is the active layer in script-fu? I know I can create a dialog to select a layer. However, my script-fu is intended to be non-interactive. I want the user to select the layer to work against in the layers dialog and then invoke the script. I could not find anything in the plugin browser that looked like it did the trick.

Thanks!

I suggest gimp-image-get-active-layer

Kevin

Subscribe to Comments for "Detect active layer?"