6 hours ago
(This post was last modified: 6 hours ago by programmer_ceds.)
(10 hours ago)vince Wrote: Hello,
new to this forum I hope someone here could help me a little bit.
As I upgraded from debian 12 to debian 13, gimp was upgraded to version 3.
I have a set of short scripts that allowed me to invoke gimp (at least until version 2.8) from a linux bash console. Now they fail, so I have to adapt them to recent changes.
The one question I still stumble on is the ability to set a drawable in my image. The former syntax does not work anymore :
Code:
(drawable (car(gimp-image-get-active-drawable image)))
so that I can't do anything on a specific layer e.g. desaturate :
How can I instruct gimp that, let's say, the drawable is layer [0] ?Code:
(gimp-drawable-desaturate drawable 0)
Thanks in advance,
Vince.
In this case you need gimp-image-get-selected-drawables which returns a list of the selected drawables.
Use "Help/Procedure Browser" to search for key words in the functions that you need to updated.
Also looking at the built-in scripts may help you.

