4 hours ago
looking at GIMP's inbuilt scripts it could possibly be
Code:
(drawable (vector-ref (car (gimp-image-get-selected-drawables image)) 0))
