Previous | Next

Script-Fu Console


> (gimp-image-list)
(5 #( 9 8 7 3 1 ))

> (define img2 (aref (cadr (gimp-image-list)) 1))
img2

> (define layer (car (gimp-image-get-active-layer img2)))
layer

> (gimp-drawable-width layer)
(512)

(gimp-image-list) returns (list num-images img-array)

Use aref to access elements of this array.

The numbers correspond with the number before the decimal point in the titlebar, e.g. 3 in img001.jpg-3.0