Switch to full style
Ask all general Gimp related questions here
Post a reply

very old scripts

Wed Jul 22, 2020 5:18 am

GIMP Version: 2.10.14
Operating System: Windows
GIMP Experience: New User



:wvy
I am trying to clean a "scripts" folder (gimp-data-extras-2.0.4) and all the ones I wanted to test are unusable with error messages, and the one that comes up often is "Error : (: 1) eval: unbound variable: NORMAL-MODE ".
Is there any modification I could make with notepad ++ to fix this but is it really worth it ???

Re: very old scripts

Wed Jul 22, 2020 6:51 am

Gimp-data-extras-2.0.4 includes 47 scripts:
...scripts obsoleted in GIMP 2.10
('File > Create' and 'Filters > Alpha to Logo'
and update some PDB use to match changes in 2.10 ...


Tin Tran create 2 plugins for fixing basic errors:
GIMP10 Constantize Plug-in
https://gimplearn.net/viewtopic.php?f=3 ... onstantize

GIMP10 Constantize Batch Plug-in
https://gimplearn.net/viewtopic.php?f=3&t=2097

Gimp-2.10 tolerates a lot of bugs because it still works in many cases with the compatibility mode with the older version of the procedures - but it is not known how long deprecated will be accepted. :hoh
When I try to fix something I am also trying to repair the deprecated (but still accepted ones) - sometimes it's simple and quick, but some scripts or plugins requires knowledge of the basics of coding - and it can take up to 1 hour to improve.

Is it worth repairing them?
I think so that you can try at least once and decide if it will be useful for me now (and maybe someday and archive it in a package, e.g. zip)

Re: very old scripts

Wed Jul 22, 2020 7:40 am

MareroQ :wvy
To choose which filters to repair, I first need to see the effects they produce. However, I wanted to test the filters in the gimp-data-extras-2.0.4 folder because I didn't know any. Discovery..
So I don't know which ones are likely to interest me! .....

Re: very old scripts

Wed Jul 22, 2020 7:43 am

I will try "constantize"

Re: very old scripts

Thu Jul 23, 2020 4:13 am

level_0 wrote:GIMP Version: 2.10.14
Operating System: Windows
GIMP Experience: New User



:wvy
I am trying to clean a "scripts" folder (gimp-data-extras-2.0.4) and all the ones I wanted to test are unusable with error messages, and the one that comes up often is "Error : (: 1) eval: unbound variable: NORMAL-MODE ".
Is there any modification I could make with notepad ++ to fix this but is it really worth it ???


Constantize is a quick fix, the bad side is that if you get that old script working with it alone (old scripts have sometimes other errors too) your image will switch to legacy mode. If you want to use the new layer blending modes that were introduced in 2.10 you have to switch back to default.
That's why I recently started to fix manually.
Using constantize replaces NORMAL-MODE with LAYER-MODE-NORMAL-LEGACY (Gimp 2.8), in 2.10 default is LAYER-MODE-NORMAL.

procedure-browser-layer-modes.jpg
procedure-browser-layer-modes.jpg (356.13 KiB) Viewed 3326 times


You can always mass-rename bigger scripts with search & replace in Notepad++/Geany to work faster.

Re: very old scripts

Thu Jul 23, 2020 5:06 am

Hi Nidhogg.

Not necessarily so - when the old scripts were created there was one mode (now called "Legacy") - and to get the effect that the script author had planned, the old modes should be used.

Re: very old scripts

Thu Jul 23, 2020 5:40 am

I see MareroQ. I want to avoid Legacy Mode and prefer to use the 2.10 default when possible.
Are there differences? I compared some legacy modes with the default and they looked exactly same.

Re: very old scripts

Thu Jul 23, 2020 10:11 am

3D Outline
First script from " Gimp-data-extras-2.0.4" - update to new features Gimp-2.10 (especially vertical text).
Rel 2: procedures adapted to Gimp-2.10, added adjust and text direction.

@Level_0
What is Your progress?

@Nidhogg
I don't see the difference either :oops: - but in some cases it does.

Re: very old scripts

Sat Jul 25, 2020 4:58 am

MareroQ wrote:
@Level_0
What is Your progress?[b][color=#4000BF]


Mareroq, the day before yesterday it was my feast and nobody wished it to me, because some died and others forgot so I have no morale for these "Alpha to logo" filters and more they don't show up in file / create / logos but in x different places.And moreover i think it must be possible to get similar effects in proceeding otherwise.So I take a break :)

Re: very old scripts

Sat Jul 25, 2020 5:10 am

@ level0 what do you mean by feast? :?: :?: :?:

Re: very old scripts

Sat Jul 25, 2020 5:12 am

Thank you so much for your constant update of those old scripts. I am happy they work again. :tyspin :clap

Re: very old scripts

Sat Jul 25, 2020 5:28 am

sallyanne wrote:@ level0 what do you mean by feast? :?: :?: :?:

sallyanne :wvy
https://calendrier-agenda.fr/calendrier ... e-brigitte
Post a reply