Re: [Gimp-user] Script-Fu deprecation warnings - how to handle these?
Hi, Have a look at the builtin procedure browser, to be found in the help menu. You should find both the deprecated and the replacing procedures there. If you have a little programming background, you can adapt the scripts yourself. I did this recently for a few scripts that didn't work correctly in v2.9.1 ("Straighten & Crop" and "Shadow & Highlight"). In 2.9.1 (Partha's version) I found that the python translations are not always working correctly. I haven't figured out what/why on that. Op 18-10-2015 om 12:25 schreef Helmut Jarausch: Hi, from time to time I get deprecation warnings in older script-fu scripts. Like gimp-selection-load should be replaced by gimp-image-select-item but gimp-image-select-item always takes 3 parameters while gimp-selection-load had been called with a single parameter. Is there an upgrade guide for script-fu scripts? Many thanks for a pointer, Helmut ___ gimp-user-list mailing list List address:gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list ___ gimp-user-list mailing list List address:gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
[Gimp-user] Script-Fu deprecation warnings - how to handle these?
Hi, from time to time I get deprecation warnings in older script-fu scripts. Like gimp-selection-load should be replaced by gimp-image-select-item but gimp-image-select-item always takes 3 parameters while gimp-selection-load had been called with a single parameter. Is there an upgrade guide for script-fu scripts? Many thanks for a pointer, Helmut ___ gimp-user-list mailing list List address:gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
Re: [Gimp-user] Script-Fu deprecation warnings - how to handle these?
None that I'm aware of -- docs.gimp.org lists a "Script-Fu Migration Guide" but that is relative to GIMP 2.4 (when GIMP switched script-fu engines) and not up to date with current versions. In the case of gimp-selection-load specifically, the one parameter is a channel handle and I assume it operates on the 'current' image (which is probably the reason for its deprecation). The three parameters to gimp-image-select-item are: 1 - target image handle 2 - Type of operation to perform on the target image (add/subtract/etc.) 3 - Source item to operate from (layer, channel, etc.) All these parameters make sense. Your image handle is provided automatically when executing your script, CHANNEL_OP_REPLACE or CHANNEL_OP_ADD is probably what you want to fill in for parameter 2, and parameter 3 can take the channel handle just like the older function. -- Stratadrake strata_ran...@hotmail.com Numbers may not lie, but neither do they tell the whole truth. > Date: Sun, 18 Oct 2015 12:25:10 +0200 > From: jarau...@skynet.be > To: gimp-user-list@gnome.org > Subject: [Gimp-user] Script-Fu deprecation warnings - how to handle these? > > Hi, > > from time to time I get deprecation warnings in older script-fu scripts. > Like > gimp-selection-load should be replaced by gimp-image-select-item > > but gimp-image-select-item always takes 3 parameters while > gimp-selection-load had been called with a single parameter. > > Is there an upgrade guide for script-fu scripts? > > Many thanks for a pointer, > Helmut > > > > ___ > gimp-user-list mailing list > List address:gimp-user-list@gnome.org > List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list > List archives: https://mail.gnome.org/archives/gimp-user-list ___ gimp-user-list mailing list List address:gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list