Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arrow Script
#72
(10-11-2022, 04:44 PM)programmer_ceds Wrote: @BugsBunnySan

I still couldn't replicate the problem until I realised that the "Resize layers" control in "Image/Canvas Size.." has to be set to "None". Having done this the problem shows when the arrow is drawn on the original layer just as you said.

What you have found is not a bug in the script, it is an obscure bug in GIMP and only seems to happen in the circumstances that you describe. The problem looks like it lies in the gimp-paintbrush-default function. It still happens in V2.99.12 (note that the script will not run in V2.99.12 unless you produce your own version that reinstates the function gimp-image-get-active-vectors)

As a work-around I have modified the script so that it always draws the arrow on a new layer but merges this layer down onto the original layer at the end if the option to draw the arrow on a new layer is not selected.

Try the updated version:

http://programmer97.byethost10.com/Files/arrow.zip

I will produce a simple script that can be used to demonstrate the problem and then submit a GIMP fault report.

Note that with the set-up that you described the drawable passed to the arrowhead drawing function has an offset of 40,40 whether the drawable is a new layer or the original layer - hence my saying that it is a problem with GIMP. If one of the methods had no offset then it would have been a problem with the script but as it is the script can't know whether or not to remove the offset.

The paintbrush paints with coordinates 0, 0 being the top left corner of the drawable (layer in this case).

Whereas the arrow gets it in relation to the path, so in relation to the top left corner of the image canvass.

So I would have thought a fix is to deduct the drawable's x and y offsets from the x and y coordinates that are taken from the path to be used to position the arrowheads.

I tried some of the other ways a layer might get to have an offset that's not 0, 0, by moving the layer or cropping just the layer and then running the arrow script and unsurprisingly the arrowhead was drawn with the same offset problem in those cases too.
Reply


Messages In This Thread
Arrow Script - by rich2005 - 03-01-2017, 11:04 AM
RE: Arrow Script - by dinasset - 03-01-2017, 12:35 PM
RE: Arrow Script - by StrummerG - 01-23-2019, 08:44 PM
RE: Arrow Script - by rich2005 - 01-23-2019, 08:51 PM
RE: Arrow Script - by programmer_ceds - 01-24-2019, 04:48 PM
RE: Arrow Script - by programmer_ceds - 01-24-2019, 07:41 PM
RE: Arrow Script - by rich2005 - 01-24-2019, 05:06 PM
RE: Arrow Script - by Asgeirjonsson - 03-27-2020, 10:28 AM
RE: Arrow Script - by rich2005 - 03-27-2020, 11:17 AM
RE: Arrow Script - by Asgeirjonsson - 03-27-2020, 02:07 PM
RE: Arrow Script - by Krikor - 03-27-2020, 03:19 PM
RE: Arrow Script - by rich2005 - 03-27-2020, 03:27 PM
RE: Arrow Script - by rich2005 - 03-27-2020, 04:02 PM
RE: Arrow Script - by Krikor - 03-27-2020, 04:38 PM
RE: Arrow Script - by rich2005 - 03-27-2020, 04:58 PM
RE: Arrow Script - by Krikor - 03-27-2020, 07:11 PM
RE: Arrow Script - by rich2005 - 03-27-2020, 07:34 PM
RE: Arrow Script - by Krikor - 03-27-2020, 07:49 PM
RE: Arrow Script - by denzjos - 03-28-2020, 10:23 AM
RE: Arrow Script - by Krikor - 03-31-2020, 10:11 PM
RE: Arrow Script - by rich2005 - 04-01-2020, 12:02 PM
RE: Arrow Script - by Krikor - 04-01-2020, 07:41 PM
RE: Arrow Script - by jcwjcw42 - 12-10-2020, 10:31 PM
RE: Arrow Script - by carmen - 12-10-2020, 11:42 PM
RE: Arrow Script - by jcwjcw42 - 12-11-2020, 03:51 AM
RE: Arrow Script - by Krikor - 12-11-2020, 08:51 AM
RE: Arrow Script - by rich2005 - 12-11-2020, 10:44 AM
RE: Arrow Script - by denzjos - 12-12-2020, 04:29 PM
RE: Arrow Script - by programmer_ceds - 05-06-2021, 10:26 PM
RE: Arrow Script - by programmer_ceds - 05-07-2021, 06:29 AM
RE: Arrow Script - by programmer_ceds - 05-07-2021, 05:12 PM
RE: Arrow Script - by rich2005 - 05-07-2021, 06:00 PM
RE: Arrow Script - by programmer_ceds - 05-07-2021, 09:51 PM
RE: Arrow Script - by rich2005 - 05-08-2021, 07:22 AM
RE: Arrow Script - by Krikor - 05-08-2021, 01:10 AM
RE: Arrow Script - by programmer_ceds - 05-08-2021, 09:38 AM
RE: Arrow Script - by rich2005 - 05-08-2021, 09:52 AM
RE: Arrow Script - by programmer_ceds - 05-08-2021, 10:07 AM
RE: Arrow Script - by rich2005 - 05-08-2021, 10:16 AM
RE: Arrow Script - by programmer_ceds - 05-08-2021, 04:04 PM
RE: Arrow Script - by rich2005 - 05-08-2021, 04:54 PM
RE: Arrow Script - by Histone - 07-26-2021, 11:50 AM
RE: Arrow Script - by programmer_ceds - 07-26-2021, 12:29 PM
RE: Arrow Script - by rich2005 - 07-26-2021, 12:26 PM
RE: Arrow Script - by Histone - 07-26-2021, 12:57 PM
RE: Arrow Script - by programmer_ceds - 07-26-2021, 01:21 PM
RE: Arrow Script - by Histone - 07-26-2021, 01:56 PM
RE: Arrow Script - by programmer_ceds - 07-26-2021, 05:11 PM
RE: Arrow Script - by Histone - 07-26-2021, 08:57 PM
RE: Arrow Script - by programmer_ceds - 07-26-2021, 09:31 PM
RE: Arrow Script - by Histone - 07-26-2021, 10:01 PM
RE: Arrow Script - by programmer_ceds - 07-27-2021, 04:37 PM
RE: Arrow Script - by Histone - 07-28-2021, 03:27 AM
RE: Arrow Script - by programmer_ceds - 07-28-2021, 08:46 AM
RE: Arrow Script - by programmer_ceds - 07-28-2021, 04:09 PM
RE: Arrow Script - by programmer_ceds - 07-29-2021, 09:08 AM
RE: Arrow Script - by rich2005 - 07-29-2021, 01:53 PM
RE: Arrow Script - by Histone - 08-08-2021, 08:56 PM
RE: Arrow Script - by programmer_ceds - 08-09-2021, 10:04 AM
RE: Arrow Script - by vitforlinux - 09-01-2022, 11:17 AM
RE: Arrow Script - by programmer_ceds - 09-01-2022, 12:25 PM
RE: Arrow Script - by rich2005 - 09-01-2022, 12:22 PM
RE: Arrow Script - by vitforlinux - 09-01-2022, 02:26 PM
RE: Arrow Script - by programmer_ceds - 09-01-2022, 03:48 PM
RE: Arrow Script - by programmer_ceds - 09-01-2022, 07:09 PM
RE: Arrow Script - by programmer_ceds - 09-04-2022, 03:44 PM
RE: Arrow Script - by vitforlinux - 09-05-2022, 11:16 AM
RE: Arrow Script - by BugsBunnySan - 10-07-2022, 09:42 PM
RE: Arrow Script - by programmer_ceds - 10-08-2022, 07:20 PM
RE: Arrow Script - by BugsBunnySan - 10-08-2022, 08:18 PM
RE: Arrow Script - by programmer_ceds - 10-11-2022, 04:44 PM
RE: Arrow Script - by teapot - 10-12-2022, 02:17 AM
RE: Arrow Script - by programmer_ceds - 10-12-2022, 04:46 PM
RE: Arrow Script - by BugsBunnySan - 10-12-2022, 09:11 PM
RE: Arrow Script - by teapot - 10-13-2022, 03:16 AM
RE: Arrow Script - by programmer_ceds - 10-13-2022, 07:33 AM
RE: Arrow Script - by programmer_ceds - 10-13-2022, 01:13 PM
RE: Arrow Script - by BugsBunnySan - 10-14-2022, 01:17 AM
RE: Arrow Script - by teapot - 10-13-2022, 10:54 PM
RE: Arrow Script - by programmer_ceds - 10-14-2022, 10:24 AM
RE: Arrow Script - by programmer_ceds - 10-25-2022, 04:35 PM
RE: Arrow Script - by teapot - 10-26-2022, 03:25 AM
RE: Arrow Script - by programmer_ceds - 10-26-2022, 09:58 AM
RE: Arrow Script - by teapot - 10-26-2022, 05:30 PM
RE: Arrow Script - by programmer_ceds - 10-26-2022, 09:57 PM
RE: Arrow Script - by programmer_ceds - 11-27-2022, 06:23 PM
RE: Arrow Script - by kyolim - 02-02-2023, 06:39 PM
RE: Arrow Script - by programmer_ceds - 02-02-2023, 07:37 PM
RE: Arrow Script - by kyolim - 10-24-2023, 08:02 PM
RE: Arrow Script - by rich2005 - 10-24-2023, 08:40 PM
RE: Arrow Script - by vitforlinux - 10-03-2023, 02:02 PM
RE: Arrow Script - by programmer_ceds - 10-03-2023, 04:40 PM
RE: Arrow Script - by programmer_ceds - 12-24-2023, 05:07 PM
RE: Arrow Script - by vitforlinux - 10-04-2023, 11:12 AM
RE: Arrow Script - by vitforlinux - 10-25-2023, 03:28 PM
RE: Arrow Script - by ChrisHammond56 - 01-06-2024, 12:48 PM
RE: Arrow Script - by rich2005 - 01-06-2024, 01:07 PM
RE: Arrow Script - by programmer_ceds - 01-06-2024, 06:18 PM
RE: Arrow Script - by ChrisHammond56 - 01-07-2024, 01:23 AM
RE: Arrow Script - by programmer_ceds - 02-18-2024, 05:00 PM
RE: Arrow Script - by vitforlinux - 03-01-2024, 01:15 PM
RE: Arrow Script - by programmer_ceds - 03-01-2024, 04:59 PM
RE: Arrow Script - by PixLab - 03-02-2024, 04:46 AM
RE: Arrow Script - by programmer_ceds - 03-02-2024, 10:30 AM
RE: Arrow Script - by PixLab - 03-03-2024, 06:37 AM
RE: Arrow Script - by vitforlinux - 03-05-2024, 02:49 PM
RE: Arrow Script - by vitforlinux - 07-22-2024, 12:05 PM
RE: Arrow Script - by rich2005 - 07-22-2024, 12:44 PM
RE: Arrow Script - by vitforlinux - 07-22-2024, 01:22 PM
RE: Arrow Script - by vitforlinux - 11-02-2024, 12:53 PM
RE: Arrow Script - by programmer_ceds - 11-02-2024, 05:40 PM
RE: Arrow Script - by vitforlinux - 11-03-2024, 01:16 PM
RE: Arrow Script - by programmer_ceds - 11-04-2024, 04:31 PM
RE: Arrow Script - by rich2005 - 11-16-2024, 09:58 AM
RE: Arrow Script - by vitforlinux - 11-05-2024, 12:50 PM
RE: Arrow Script - by programmer_ceds - 11-07-2024, 10:29 PM
RE: Arrow Script - by rich2005 - 11-16-2024, 01:03 PM
RE: Arrow Script - by programmer_ceds - 11-16-2024, 05:55 PM
RE: Arrow Script - by MrsP-from-C - 11-16-2024, 06:28 PM

Forum Jump: