Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arrow Script
Probably not a good idea to have two versions that register the same. First thing to try is one of those installed alone, then the other alone.  

If that does not work then maybe an older version. Try the attached (again on its own). Works here Gimp 2.10.38 (rev1) / Windows 10

   

Should be same as before, find it bottom of the tools menu


Attached Files
.zip   arrow-set-size.scm.zip (Size: 7.22 KB / Downloads: 54)
Reply
(02-03-2025, 12:49 PM)philster Wrote: Hi, I have GIMP 2.10.38 and I'm trying to use the arrow script but I have an error 
''Error While Executing Script-Fu-Draw-Arrow: Error: Eval: Unbound Variable: Gimp-Image-Get-Selected-Paths''
The scripts is downloaded to the C:\-\-\AppData\Roaming\GIMP\2.10\scripts folder like it supose to be.



Is there a newer version of the script that would work with the latest version of gimp?

The fact that the error message complains about gimp-image-get-selected-paths (not as noted above with capitals) means that you are using arrow_V3.scm. The file ArrowScriptNotes.pdf which is included in the zip file clearly states that for GIMP V2.10.38 you need to use arrow.scm. What you need is not the newest version as you are not using the latest version of GIMP.

Link to get the zip file:

http://programmer97.byethost10.com/Files/arrow.zip
Reply
I have uploaded a new version of arrow_V3.scm so that it works with GIMP V3.0.0 RC3 (the problems only showed up if the arrow was to be drawn on a new layer).

The changes are:

        gimp-layer-new image now has "name" as the second, rather than the fifth, parameter

        plugin-autocrop-layer has been replaced by gimp-image-autocrop-selected-layers

http://programmer97.byethost10.com/Files/arrow.zip
Reply
I was having fits trying to get the arrow tool to work with my old 2.x version of GIMP, and troubleshooting the errors is WAY above my paygrade. So I had the bright idea to install GIMP3.0 and downloaded the zip file from the link in your last post, which you specified were for the 3.0 build of GIMP. I unzipped the files into the script folder and of course the arrow tool shows up as an option when I boot up GIMP. I dropped two points onto an image, then select the arrow tool, then hit OK. At which point, I get these error boxes:

https://imgur.com/a/0dKvZr0

I'm pretty hopeless troubleshooting this stuff, but there's nothing unusual about my brush size setting, as far as I can tell. In fact, I hadn't touched it in this fresh install, but just to be sure, I fiddled with different brush sizes and still get the error. If there's any additional info I can provide to help troubleshoot, let me know. If it matters, I still have the 2.x version of GIMP installed in a separate directory, but I can't imagine that's causing any issues since the script folders are in entirely separate folders themselves (2.x vs 3.0).
Reply
Hopefully programmer_ceds will come along with a solution.

I do not have any problem with an old Gimp 2.10 version.
but for Gimp 3.0 RC3 (appimage) with the adjustments from post #123 I get this error

Execution error for 'Arrow':
Error: eval: unbound variable: gimp-image-get-active-vectors
Reply
(Yesterday, 09:28 AM)rich2005 Wrote: Execution error for 'Arrow':
Error: eval: unbound variable: gimp-image-get-active-vectors

Likely get-selected-paths in 3.0, but this can return several paths (in 2.10 "vectors" (plural) is actually a singular "path").
Reply
(Yesterday, 09:28 AM)rich2005 Wrote: Hopefully programmer_ceds will come along with a solution.

I do not have any problem with an old Gimp 2.10 version.
but for Gimp 3.0 RC3 (appimage) with the adjustments from post #123 I get this error

Execution error for 'Arrow':
Error: eval: unbound variable: gimp-image-get-active-vectors
I've just downloaded the arrow script zip file via the link from post #123 and by going to the website - neither version of arrow_V3.scm has gimp-image-get-active-vectors in it - this has been replaced by gimp-image-get-selected-paths.

Is it a problem with your browser cache? (just clutching at straws)

(03-02-2025, 11:09 PM)tomchick Wrote: I was having fits trying to get the arrow tool to work with my old 2.x version of GIMP, and troubleshooting the errors is WAY above my paygrade. So I had the bright idea to install GIMP3.0 and downloaded the zip file from the link in your last post, which you specified were for the 3.0 build of GIMP. I unzipped the files into the script folder and of course the arrow tool shows up as an option when I boot up GIMP. I dropped two points onto an image, then select the arrow tool, then hit OK. At which point, I get these error boxes:

https://imgur.com/a/0dKvZr0

I'm pretty hopeless troubleshooting this stuff, but there's nothing unusual about my brush size setting, as far as I can tell. In fact, I hadn't touched it in this fresh install, but just to be sure, I fiddled with different brush sizes and still get the error. If there's any additional info I can provide to help troubleshoot, let me know. If it matters, I still have the 2.x version of GIMP installed in a separate directory, but I can't imagine that's causing any issues since the script folders are in entirely separate folders themselves (2.x vs 3.0).
The error is complaining about setting a brush size of zero. The only lines in the script that set the brush size are:

                (gimp-context-set-brush-size (/ theArrowLength BrushThicknessFactor))
or
                (gimp-context-set-brush-size BrushThicknessFactor)

The first is used if the "Brush thickness type" control is set to "Path length divided by BT value" and the second is used if the "Brush thickness type" control is set to "BT Pixels".

The "Brush Thickness (BT)" control can't be set less than 1 - so that rules out trying to set a value of 0 with the second line above.

The first line above could set a value of zero if the path length was zero (perhaps I should add a check for this?)

(I'm assuming that you are using the latest RC3 and the latest version of arrow_V3.scm)
Reply
Save your straws, Missed a file when I unpacked the zip. 3 files 2 x .scm + PDF

V3 size 35,045 B does work - Gimp 3.0 RC3 appimage.
Reply
I have uploaded a revised version (dated 3/3/2025) with the following changes:

  The calculated brush size is limited to a range of 1 to 10000 (inclusive) - to stop the error reported by tomchick

  The arrow wing length is forced to be at least 1 pixel

  The script requires GIMP V3.0.0  (actually a recent version of RC3 but this will, hopefully, soon become irrelevant).

The link is as in the earlier post above. There is no real need to update from the preceding version unless you are plagued by the problem reported by tomchick.
Reply


Forum Jump: