Hello everybody,
I am new to GIMP and to GIMP scripting and am trying to write a Scheme script for changing the mode of all visible layers at once to a particular value (LAYER-MODE-LIGHTEN-ONLY), because I want to combine a series of 200 full moon images with a foreground taken at dawn (the moon alone in black night is boring). Unfortunately, GIMP does not offer that functionalty by itself.
I am stuck at the stage where I want to register my new function with one of the parameters being an SF-ENUM offering all the available layer modes with a default of LAYER-MODE-LIGHTEN-ONLY. My parameter declaration in script-fu-register so far is
SF-ENUM "The Layer Mode" '("LayerMode" "LAYER-MODE-LIGHTEN-ONLY")This is syntactically accepted but not executed with respect to the default. The default remains at the entry with the lowest value. I could live with it but I'd like to have it pretty.
The documentation says "
This has to be the name of a registered enum, without the 'Gimp' prefix. The second parameter speficies the default value, using the enum value's nick".
Wonderful! How about a link to a list of those enums with the corresponding nicks?
Has anbody a hint for me where I can look-up the available enum declarations? I even found such a declaration in developer gimp org (I newbie am not allowed to post weblinks), but that's outdated.
Do I really need to study the source code of GIMP? Hm... Is GIMP open source at all...?
![Puzzled :puzzled](./images/smilies/017.gif)