![]() |
Arrow Script - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: Arrow Script (/Thread-Arrow-Script) |
RE: Arrow Script - vitforlinux - 03-01-2024 I tried to backport Arrow V3 latest version to Gimp 2.10, but I couldn't... this makes me think that it will be difficult to have old scripts updated for Gimp 3.0. For the moment I have modified the V3 that I had backwards compatible with to support Gimp 2.99.18... it works but makes some errors, but if I solve them there will be no backwards compatibility. Your Arrow v3 is definitely the best example of how you will need to modify your code to run on Gimp 3.0. I hope the Gimp 3.0 developers realize that it is now very difficult to modify an old script and have backward compatibility. Your way of having two versions is the only choice to not have complicated code. Thank you! RE: Arrow Script - programmer_ceds - 03-01-2024 (03-01-2024, 01:15 PM)vitforlinux Wrote: I tried to backport Arrow V3 latest version to Gimp 2.10, but I couldn't... this makes me think that it will be difficult to have old scripts updated for Gimp 3.0. Once GIMP 3.0 is released the need to have scripts for 2.10.x will fade. In order to gain the advantages of V2.99/V3 scripts they have to use script-fu-register-filter (instead of script-fu-register) so making having a single version of the script for all versions is a non-starter. RE: Arrow Script - PixLab - 03-02-2024 (03-01-2024, 04:59 PM)programmer_ceds Wrote: they have to use script-fu-register-filter (instead of script-fu-register) Do you know where can we find a list of those changes? RE: Arrow Script - programmer_ceds - 03-02-2024 (03-02-2024, 04:46 AM)PixLab Wrote:(03-01-2024, 04:59 PM)programmer_ceds Wrote: they have to use script-fu-register-filter (instead of script-fu-register) Some information is given at: https://developer.gimp.org/resource/script-fu/programmers-reference/#version-3-filter-plugin But note that at least one of the links leads to a V2 example. Generally looking at the scripts supplied with GIMP is as useful as anything. If you download the source code from https://gitlab.gnome.org/GNOME/gimp the scripts are in plug-ins/python and plug-ins/script-fu/scripts RE: Arrow Script - PixLab - 03-03-2024 (03-02-2024, 10:30 AM)programmer_ceds Wrote:(03-02-2024, 04:46 AM)PixLab Wrote:(03-01-2024, 04:59 PM)programmer_ceds Wrote: they have to use script-fu-register-filter (instead of script-fu-register) Thank you especially the last one > https://gitlab.gnome.org/GNOME/gimp/-/tree/master/plug-ins/script-fu/scripts?ref_type=heads plenty to take a look at for the 2.99 / 3 RE: Arrow Script - vitforlinux - 03-05-2024 I have to say that I'm not a fan of backwards compatibility, but it's a way to have just one scm file for two versions... and avoid unnecessary error reporting. For many, writing V3 (or 299 in my case) is not clear enough... but there is no solution, surely someone will want to put the files for Gimp 2.8 in 3.0. Thanks again for the links to the development resources. RE: Arrow Script - vitforlinux - 07-22-2024 Changes are needed for Gimp 2.99.19 r988/r1005 gimp-vectors-get-strokes > gimp-path-get-strokes gimp-vectors-stroke-get-points > gimp-path-stroke-get-points gimp-vectors-stroke-get-length > gimp-path-stroke-get-length gimp-image-remove-vectors > gimp-image-remove-path In my repo they are already done, but you have to forget that it works in 2.99.18/19 of previous versions. My changes to make 2.10 and 2.99.19 r1005 work at the same time still work, even though the code isn't exactly for 2.99. https://github.com/vitforlinux-gimp/scm/blob/main/arrow_V3.scm RE: Arrow Script - rich2005 - 07-22-2024 Thanks, works well with a linux Gimp 2.99.19 appimage, commit 4a50143ba6, from about last Saturday.. RE: Arrow Script - vitforlinux - 07-22-2024 I forgot one: gimp-image-get-selected-vectors > gimp-image-get-selected-path I would like to know why in Gimp 2.99 same name different function and different name same function... but no one knows. :-) New AppImage any day: https://github.com/ivan-hc/GIMP-appimage/releases/tag/continuous-git RE: Arrow Script - vitforlinux - 11-02-2024 Updating, as every day, the AppImage of Gimp 2.99.19, I noticed some changes, and I adjusted my script-fu to work, taking a few days. Unfortunately with Arrow I wasn't successful, even by updating ArrowV3 Original I get an error that I can't explain, and I can't resolve it. |